Skip to content

Instantly share code, notes, and snippets.

@dexteryy
Created October 19, 2009 16:18
Show Gist options
  • Save dexteryy/213491 to your computer and use it in GitHub Desktop.
Save dexteryy/213491 to your computer and use it in GitHub Desktop.
$(new Image()).load(function(){
console.timeEnd("1");
$(new Image()).load(function(){
console.timeEnd("2");
}).attr('src', "http://shop.10010.com/images/iphone/iphone_3GS.jpg");
console.time("2");
}).attr('src', "http://shop.10010.com/images/iphone/iphone_3GS.jpg");
console.time("1");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment