Skip to content

Instantly share code, notes, and snippets.

@atomize
Created March 1, 2012 07:08
Show Gist options
  • Save atomize/1947952 to your computer and use it in GitHub Desktop.
Save atomize/1947952 to your computer and use it in GitHub Desktop.
jQuery preloadImages
jQuery.preloadImages = function() {
for (var i = 0; i < arguments.length; i++) {
jQuery("<img>").attr("src", arguments[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment