Over a million developers have joined DZone.

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("").attr("src", arguments[i]);
	}
}
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}