jeudi 16 juin 2016

jQuery callback on image load (even when the image is cached)


I want to do:

$("img").bind('load', function() {
  // do stuff
});

But the load event doesn't fire when the image is loaded from cache. The jQuery docs suggest a plugin to fix this, but it doesn't work


Aucun commentaire:

Enregistrer un commentaire