Forum Moderators: open

Message Too Old, No Replies

adding more images after some time

using ajax to load mora images after the page loaded

         

punisa

12:08 pm on Apr 6, 2009 (gmt 0)

10+ Year Member



hello !

I have a site that displays various news topic on homepage. Each article also has a small picture.
Once you click on a tiny picture, a larger one "expands".

This all looks sweet, but these large images are not loaded initially when you enter the page.
They get loaded into a hidden div by using ajax, 15 seconds AFTER the page has fully loaded.

Is this a good way to go?
My page when loaded is cca 250kb, the extra images are cca 1 MB. I assumed it would be only natural not to drag down the user's experience with that extra load when he/she just really wants to see the latest headlines.

Can I use such an approach or is it somewhat risky?
Thanks :D

Kings on steeds

11:53 am on Apr 7, 2009 (gmt 0)

10+ Year Member



yer, i dont think there is anything risky about it only i wouldnt wait 15 seconds as soon as the page has finished loading call in the images one by one, might also be worth having a check so if they click to show a bigger image before its loaded it shifts it to the top of the stack...

punisa

1:58 pm on Apr 7, 2009 (gmt 0)

10+ Year Member



Yep, everything works fine indeed.
I have 15 second wait, cause some other stuff is firing up in the meantime, eg Flv video : D