#jQuery Image Preloader
$(['img1.jpg','img2.jpg','img3.jpg']).preload();
$.fn.preload = -> | |
@each -> | |
$("<img/>")[0].src = this |
$.fn.preload = function() { | |
this.each(function(){ | |
$('<img/>')[0].src = this; | |
}); | |
} |
#jQuery Image Preloader
$(['img1.jpg','img2.jpg','img3.jpg']).preload();