Question:
I’m concerned about the order in which images I use on a site are loaded. Specifically, I want toload certain images before others.
Any ideas?
Answer:
There are three ways I can think of for tackling your problem:
- Since your browser reads an HTML file from top to bottom and opens the connections to call the images in the order the HTML is parsed, I recommend using ALIGN and VALIGN attributes to their fullest.
So let’s say that you wanted a graphic on the top left to be the last to load. What you would do at the very bottom of the file is call the image:
- You may also be able to fool the browser by using the LOWSRC tag where the image being called in the LOWSRC is really just a transparent GIF.
- Finally, I would also use file size to your advantage. For example, GIFs with the highest memory that do not dither will pop on the page only after it’s completely loaded.I’d be interested in hearing which solution you choose, and to see it in use.