View Full Version : Controlling Image Load order
lilts520
05-25-2011, 02:35 PM
Hi, I am trying to control the image load order on my site. Because I have heavy javascript for all my images, they load before the main logo image which takes about 30 seconds to load. Is there a way to reverse that?
http://lilyalayeva.com/new/demo/index.html
Thanks!
djr33
05-25-2011, 02:45 PM
Browsers load things in the order that they are given in the source code. If Javascript is slowing down the page, then the usual method to fix this is to place the Javascript code lower in the source. So this means the best position is to place it immediately before the </body> tag in many cases. But sometimes that can change things as well, so be creative to find a way to make it work.
lilts520
05-25-2011, 02:54 PM
Hmm. Thanks. I think that worked. I didn't realize it was ok to put the script that is supposed to go within the <head></head> tag right into the body tag.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.