Skip to content

Instantly share code, notes, and snippets.

@obahareth
Created August 15, 2013 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obahareth/6246055 to your computer and use it in GitHub Desktop.
Save obahareth/6246055 to your computer and use it in GitHub Desktop.
Detect If An Image Has Been Loaded
$("#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