Created
April 27, 2010 12:55
-
-
Save yoko/380700 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var preloadImage = function(paths) { | |
if (!$.isArray(paths)) paths = $.makeArray(arguments); | |
for (var i = 0, path; path = paths[i]; i++) | |
new Image().src = path; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment