Created
February 19, 2015 12:45
-
-
Save mateusneves/166ad6a8a8734debfc92 to your computer and use it in GitHub Desktop.
Callback on image load
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("img").one("load", function() { | |
// do stuff | |
}).each(function() { | |
if(this.complete) $(this).load(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment