PDA

View Full Version : Slider out of place on first load.



danielmeade
02-07-2010, 08:41 PM
I'm having a small loading issue with the script I'm using for a slider on the home page of my site. When a user first visits the site, each of the sliders img's etc. appear one after the other down the page, before settling in to where they should be.

I've tested this on various machines and connections and at times has taken up to 30 seconds to load properly!

Is there anything I can do to help prevent this from happening?

Site: http://businessnoob.com
The site is currently passworded whilst undergoing work.

Username: site
password: brankic

Thanks in advance for your help!

Daniel

djr33
02-08-2010, 12:33 AM
The reason this happens is because everything is loading. The only way around it would be to write the html directly into the code then have Javascript manipulate it. As it is now, Javascript is generating all of that (the positions, at least), so you would have to rewrite a lot of the script. Also, this would not then be dynamic-- it would always load with that part active, rather than deciding based on Javascript.

danielmeade
02-08-2010, 09:40 AM
Ok. This may be something I will have to replace then as I need load time to be as quick as possible.

Thanks for your help!

Daniel