jquery image preload


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.