Javascript images pre-loader
on Monday, January 19th, 2009 at 5:49 pmHere you are, doing a photo gallery and in that photo gallery you have many thumbnails that on click will display the larger picture.
If you are using the simple “document.getElementById(‘someid’).innerHTML=’‘” or many other javascript method to load your images then you have a problem.
When the user click he will have to wait for the image to load and sometimes will see parts of the images opening bit by bit.
This javascript preloader will load all your desired images in the background and so when you call them they are ready to be displayed ![]()
This will come handy also a lot when doing a javascript slide show… but this will be my next post here ![]()
Demo: http://joeabiraad.com/demos/preloader/
Files: http://joeabiraad.com/demos/preloader/preloader.rar
Hope it helps
//Jo
2 Comments »
RSS feed for comments on this post. TrackBack URL