To complement Calvin's answer, images can be preloaded by adding to this function:
$.preloadImages = function() { for(var i = 0; i<arguments.length; i++) { $("<img>").attr("src", arguments[i]); } }
Then just indicate which images you want to upload:
$.preloadImages("image1.gif", "/path/to/blah.png", "some/other.jpg");
Put this code before what you download as a courtesy.
karim79 Apr 21 '09 at 23:18 2009-04-21 23:18
source share