View Full Version : load order
merickson
November 1st, 2002, 10:15
In what order to images load?
From what I've seen, it is not from top to bottom.
It probably differs from browser to browser.
The reason for this is that I'd like to load all of my site's images as 1X1 dots on the portal page so that the other pages will load quickly. I have to make sure that the portal page's images load and display first so that my guests can view the page (and maybe even link out) while the 1X1s are loading.
aphel aura
November 1st, 2002, 11:02
<html>
<head></head>
<body>
.
.
.
.
<img src="1.jpg">
.
.
.
.
.
.
.
<img src="2.jpg">
.
.
</body></html>
theoritically, 1.jpg will be loaded first, but normally a browser will not wait until it's fully loaded to process the rest of the HTML codes, thus the browser may start to load 2.jpg while 1.jpg is still loading. If 1.jpg is too large, 2.jpg will load first than 1.jpg
Anyway, you can't control how your site will be loaded because it depends on many factors such as connection speed and browser used. To some extent, you can do it though with some pre-loading scripts, which I doubt its effectiveness....
merickson
November 1st, 2002, 12:30
What I'm wanting to do is
<body>
.
.
<img src=pic1.jpg>
"
"
"
<img src=pic5.jpg>
.
.
.
<! end of first page content !>
<img src=150k.jpg height=1 width=1>
</body>
I want the computer to ask for pic1.jpg through pic5.jpg before it asks for 150k.jpg and I want pic1.jpg - pic5.jpg to be displayed as soon as they are received. That way you can see my content while the computer is receiving 150k.jpg (and putting it into the cache) and when you click onto the next page (which is where 150k.jpg is used), you don't have to wait for 150k.jpg to load.
The object of this exercise is to get 150k.jpg into the cache not to display the 1X1 on the first page. If the attempt fails because of slow connection or whatever, the display time for page 2 is the same as if no attempt was made.
The bad thing would be if the computer waited to display pic1.jpg - pic5.jpg until 150k.jpg was received.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.