Well this probably isn't specific to rails, but in my rails app, I have a page for a show action that contains a bunch of images (4-5 images 40-60kb each).
I don't need to show them all at the same time. I am wondering what's the best way to load them so that the page loads fast and the user experience is not sacrificed either.
Should I?
1 - Just load the 1st image and then load the rest in the background with an ajax call, once the dom is ready?
2 - Should I load them on demand when the use click a link?
3 - Should I use something like a lightbox or colorbox and again do an ajax load?
4 - I also like this plugin http://www.simplesli.de/, though not sure when it means it says it "waits" for all teh images to load, if that means the page load will take forever.
Sorry about all teh questions, I am sure there is a stock answer for this. Thanks for your help!