Skip to content

Instantly share code, notes, and snippets.

@dewski
Created January 30, 2010 00:21
Show Gist options
  • Select an option

  • Save dewski/290293 to your computer and use it in GitHub Desktop.

Select an option

Save dewski/290293 to your computer and use it in GitHub Desktop.
(function($) {
var cache = [];
$.preloadImages = function() {
$(arguments).each(function (i) {
cache.push($('<img>', { 'src': arguements[i] }));
});
}
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment