Posted By

kokikr on 04/24/09


Tagged

js textmate jquery preload images


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

benrudolph
danielfilho


jquery image preload


 / Published in: Other
 

  1. jQuery.preloadImages = function() {
  2. for(var i = 0; i<arguments[0].length; i++) {
  3. jQuery("<img>").attr("src", arguments[0][i]
  4. }
  5. }
  6.  
  7. if (preloadAr.length>0) $.preloadImages(preloadAr);
  8.  

Report this snippet  

You need to login to post a comment.