DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Preloading Images With JQuery
Taken from http://www.mattfarina.com/2007/02/01/preloading_images_with_jquery
jQuery.preloadImages = function() {
for (var i = 0; i < arguments.length; i++) {
jQuery("<img>").attr("src", arguments[i]);
}
}





Comments
Uzbek Jon replied on Mon, 2009/04/06 - 10:40am