cache image

This snippet caches an image in the browser and then removes it so when it's loaded into the DOM it doesn't show those ugly missing image little red crosses

cache the user img
$('img').hide().appendTo('body').one('load', function() {
   console.log('Image: '+$(this).attr('src')+' is cached...');
   $(this).remove();
});