Skip to content

Instantly share code, notes, and snippets.

@Granze
Created March 25, 2012 22:40
Show Gist options
  • Select an option

  • Save Granze/2200470 to your computer and use it in GitHub Desktop.

Select an option

Save Granze/2200470 to your computer and use it in GitHub Desktop.
Check if an image is loaded
$('#theImage').attr('src', 'image.jpg').load(function() {
alert('This Image Has Been Loaded');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment