Click here to get back home

Can I specify that some images load before others?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Can I specify that some images load before others? www.MessageMazes.com 12-01-2005
Posted by www.MessageMazes.com on December 1, 2005, 6:41 am
Please log in for more thread options


Greetings,

I'm working on a collection of free puzzle pages that serve as a feed
to sale pages.

My question is whether I can specify that some images load before
others?

If you visit
http://mazes.com/asp-maze/isanamazingnoun.asp?noun=webmaster
you can make a maze that says that you are an amazing webmaster

BUT ... you'll see that the images across the top start loading first.

Could I do something that would delay loading most of these images
until after it has loaded the 26 different GIF images that make up the
maze itself? (and yes, I've debated reducing the number if images
across the top, but since the main purpose of the page is to let people
know that these products are available, I'm not sure if I want to do
that.)

Thanks for any help

John


Posted by Jim Moe on December 1, 2005, 2:35 pm
Please log in for more thread options


www.MessageMazes.com wrote:
>
> My question is whether I can specify that some images load before
> others?
>
You can specify loading order by the order of occurrence within the
page code. Whether this actually happens is another issue.
Delivery depends on:
1. The browser: how it decides to ask for the images. Usually in the order
listed but there is no guarantee.
2. The network: the data may, and likely does, take different routes to
and from the client (browser) and server (site). Each route has its own
delays.
3. The server: it services requests however it wants. You are not the only
requester. It may delay an earlier request to handle a later one. Or favor
some policy to assure overall throughput that has little to do the request
sequencing.
>
> BUT ... you'll see that the images across the top start loading first.
>
Don't put those images at the top.
(Well, you could position:absolute the top section and have the code
last in the file. But that may not help much. And has its own problems.)

The suggestion to create a single image, built for progressive loading,
is a better idea.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

Posted by Philip Ronan on December 1, 2005, 5:15 pm
Please log in for more thread options


"www.MessageMazes.com" wrote:

> I'm working on a collection of free puzzle pages that serve as a feed
> to sale pages.
>
> My question is whether I can specify that some images load before
> others?
>
> If you visit
> http://mazes.com/asp-maze/isanamazingnoun.asp?noun=webmaster
> you can make a maze that says that you are an amazing webmaster
>
> BUT ... you'll see that the images across the top start loading first.
>
> Could I do something that would delay loading most of these images
> until after it has loaded the 26 different GIF images that make up the
> maze itself?

No.

But you're going about this the wrong way. Just write a script that
generates the whole maze in a single image. It will look better, load faster
and will probably take up less bandwidth too.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/


Posted by www.MessageMazes.com on December 1, 2005, 1:39 pm
Please log in for more thread options


Philip wrote:
<< But you're going about this the wrong way. Just write a script that
generates the whole maze in a single image. It will look better, load
faster and will probably take up less bandwidth too. >>

I have no idea how to write a script that would generate the whole maze
in a single image. I know how to create BMP files with a basic program,
which I could obviously adapt to server side javascript, like ASP, but
I have no idea how I'd go about creating a single image that would be
fed to the user.

I'd sure love to learn more.


Posted by Jukka K. Korpela on December 1, 2005, 6:45 pm
Please log in for more thread options


www.MessageMazes.com wrote:

> My question is whether I can specify that some images load before
> others?

You surely cannot do such things in HTML. What made you expect you
could? (HTML is a poor lonesome data format, not a programming language.)

> If you visit
> http://mazes.com/asp-maze/isanamazingnoun.asp?noun=webmaster
> you can make a maze that says that you are an amazing webmaster

OK. (The option list doesn't include "web author", which would make the
question superficially on-topic here. :-) )

> BUT ... you'll see that the images across the top start loading first.

Maybe.

> Could I do something that would delay loading most of these images
> until after it has loaded the 26 different GIF images that make up the
> maze itself?

Maybe.

> (and yes, I've debated reducing the number if images
> across the top, but since the main purpose of the page is to let people
> know that these products are available, I'm not sure if I want to do
> that.)

You could reorganize the page so that the <img> elements for the 26 GIF
images appear after the one for the maze image, in HTML source. This
does _not_ guarantee anything. It just might cause the images to be
loaded in that order. It's up to the browser, to the server, to any
proxies and caches between, and the phase of the moon.

The _real_ problems with the page include huge requirements on window
width. If I were you, I would put the maze and its heading on the left,
all the rest (starting with the images) on the right, with images in a
column, not in a row. You could implement this using a trivial two-cell
table, or using CSS, but in either case, you could put the 24 images
after the maze image. If you wish to preserve the current visual
appearance, you would need to use relatively complicated CSS (with
positioning), or JavaScript.

And I would greatly reduce the content of the page, putting most of it
onto static subpages.

In any case, you should add width and height attributes into the <img>
tags to speed up rendering.

Similar ThreadsPosted
wget -p does not load my images October 25, 2006, 11:52 am
Impact of images on load performance November 29, 2004, 2:49 pm
How do I automatically load a different page ? November 10, 2004, 1:04 pm
how to load a different image on a web page February 5, 2007, 12:09 pm
Textarea style not applied on first load November 22, 2007, 4:29 pm
Troubleshooting page load delays: Whats the best approach? Software? July 26, 2006, 3:15 pm
images won't appear in IE January 3, 2005, 8:40 pm
why a different tag for SVG images? April 4, 2006, 12:18 am
two images i corners December 11, 2004, 4:04 pm
Background images January 25, 2005, 5:19 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap