How To Preload Images Using jQuery
erics, April 12th, 2011
1 2 3 4 5 6 7 8 9 10 11 12 |
function preload(List) { jQuery(List).each(function(){ jQuery('<img/>')[0].src = this; }); } // Usage: preload([ 'images/One.jpg', 'images/Two.png', 'images/Three.gif' ]); |
Original Post: http://stackoverflow.com/questions/476679/preloading-images-with-jquery