Posted By

retsub79 on 10/20/11


Tagged

jquery preload


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

spee66


jQuery - Preload images


 / Published in: jQuery
 

  1. $([
  2. '/path/to/image.png',
  3. '/path/to/image.png'
  4. ]).each(function(){
  5. $('<img/>')[0].src = this;
  6. new Image().src=this;
  7. });

Report this snippet  

You need to login to post a comment.