Posted By

tomdowning on 09/21/11


Tagged


Versions (?)

jQuery new image load


 / Published in: jQuery
 

  1. var imgObj = new Image();
  2. $(imgObj).load(function() {
  3. //do something
  4. }).attr('src', 'imagename.jpg');

Report this snippet  

You need to login to post a comment.