PDA

View Full Version : Slide Show Script Slows Page Load



Phancy420
09-30-2009, 04:52 PM
1) Script Title:
Ultimate Fade-in slide show v2.0

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem:

Greetings,

Just added javascript code to a website that will render a fading slideshow of images on the home page. It works fine, but I am getting reports of a lag in the time it takes for the rest of the page to load. Some people say the navigation doesn't appear until the sixth image of the slide show.

Thanks for your help.

Mg2

jscheuer1
09-30-2009, 05:11 PM
Adding any script of any length, not to mention adding images, will both slow page load times. You can minimize this by optimizing the images and the script. However, the script (jquery.min.js) is already optimized for the most part and the other script code is so short as to make no real difference. You may be able to realize some speed gains by hosting the jquery.min.js script on your server.

Layout (particularly the use of nested tables) can really slow things down if there are other items within those tables (like images or scripts) which require their own loading time.

So, optimize your images and your layout. Other than that - tell these people to get a faster internet connection. :)

If you want more help:

Please post a link to the page on your site that contains the problematic code so we can check it out.