View Full Version : Setting load order for page items
06-11-2004, 09:30 PM
I have been told there is a way to make different page elements(e.g. <div> elements) load in a certain order, im asking because i have a website with 3 <div> elements and a .swf menu, but the menu always loads last, how would i stop everything else from loading until the menu is loaded?
06-11-2004, 10:28 PM
The "load order" is detemined by the order in which they are delcared on the page AND by the order in which the server provides them. Larger files will also obviously take longer to arrive at the client than smaller files.
There's no surefire way to control this except to build all the contents into the original file.
06-11-2004, 10:53 PM
What do you mean by 'build all the contents into the original file.'??
06-14-2004, 04:45 PM
Have you ever noticed that some spam messages have images in them even though you may not have an active internet connection when you view the message?
That's because the image data is part of the file that's sent to the user and not sent as a link to an external source. That same capability is available for ordinary html, it's not something special added just for the benefit of spammers. The key is that it isn't real simple to use so it's mostly spammers who are using it.
Another thing you can check is to make sure your images are "optimized" for web viewing so they'll load as quick as possible. I can recall visiting a page which had a large number of thumbnail images on it but every single one of those thumbnail images was a fullsize image which took a very long time to load. Make sure your images are exactly the same height and width as specified in the image tag which calls them so they aren't oversized. If you need thumbnail size views, make sure you create separate thumbnail size images for those views.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.