Taken from this StackOverflow answer.
Created
August 15, 2013 23:55
-
-
Save obahareth/6246055 to your computer and use it in GitHub Desktop.
Detect If An Image Has Been Loaded
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
$("#myImg").load(function() | |
{ | |
alert('I loaded!'); | |
}).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