PDA

View Full Version : Site loading order


Jure
08-29-2002, 01:50 PM
How do you change site element loading order? I want the most important site elements to load first (nav menu,...) and least important (various pictures) to load last.

Thnx for help.

joh6nn
08-29-2002, 06:03 PM
if you wanted to, you could set up some javascript that would dictate the order in which images load, but that's it. other than that, you have no control over the order in which things load. and the javascript really isn't worth it.

MCookie
08-29-2002, 07:06 PM
Most of the time, a page loads in the browser like it's written. From top to bottom that is. So when you put your contents in absolute positioned divs and put them on your page in the order you want them to load... it does make a diffence.

Roy Sinclair
08-29-2002, 08:05 PM
If you want your page to display the text content while it fills in the images then you must explicitly specify width and height for all the images, tables etc on your page. That way the browser will know how much room to leave for them and will go ahead and render the rest of the content. Without explicit sizes it waits until it knows where things will end up before it displays them.

boxer_1
08-29-2002, 08:12 PM
Another option is to use a script such as this one (http://www.dhtmlcentral.com/script/script.asp?id=17) to hide the contents of you're page behind a "Loading Bar" until the page is fully loaded. Click on "View Script" (top left) to see a demo of the script. Good luck ;) .

Jure
08-30-2002, 09:22 AM
thanx guys. that helped a lot.