Skip to content

Instantly share code, notes, and snippets.

@TastyToast
Created July 3, 2013 21:51
Show Gist options
  • Save TastyToast/5923163 to your computer and use it in GitHub Desktop.
Save TastyToast/5923163 to your computer and use it in GitHub Desktop.
Tiny Preloader
$.preloadImages = function(){
for(var i = 0; i < arguments.length; i++){
$("<img />").attr("src", arguments[i]);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment