PDA

View Full Version : Step Carousel Ajax preloader not preloading!



geektastic
04-02-2009, 08:22 AM
1) Script Title: Step Carousel Viewer v1.6.1

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm

3) Describe problem:

Hello,

I've set the Step Carousel to load externally via ajax. The loader appears for a few seconds and then loads my external content. The problem is, the content is still loading once the "Fectching content... please wait" message has disappeared. This is a problem if I have the carousel set to autostep, as images are still loading down the page whilst it's moving.

Is there any reason why this is happening? I take it everything should load before the message disappears?

Just so you know, I am loading the content via PHP switch, not that this should make a difference.

Thanks

ddadmin
04-02-2009, 08:05 PM
Does your content include images or other embedded objects within them? To the script the contents have been loaded as soon as all the HTML related to them are downloaded. This means if a content contains images, those images themselves may not have been fully loaded yet, in which case making sure they contain explicit width/height attributes help.

geektastic
04-02-2009, 09:24 PM
Hello!

Yes, the content contains images (not massive - JPEG 6 in Photoshop). Apart from setting explicit dimensions, is there anything else I can do?

Thanks

ddadmin
04-02-2009, 11:02 PM
You could preload the images in the HEAD section of your page to further reduce the time it takes to download the images I suppose. That does require the extra work of defining the URLs to the images a second time, by using a preload image script such as this one (http://www.javascriptkit.com/script/script2/preloadimage.shtml).

geektastic
04-03-2009, 08:17 AM
That's perfect. It's only for 10 images, so it will do the job perfectly.

Thank you again for your help.