atma
7/2/2012 - 3:45 AM

jQuery callback on image load

jQuery callback on image load

$("img").one('load', function() {
  // do stuff
}).each(function() {
  if(this.complete) $(this).load();
});