Jquery check if image is loaded
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3877027/jquery-callback-on-image-load-even-when-the-image-is-cached">jQuery callback on image load (even when the image is cached)</a>  </p>
</blockquote>



<p>Is there a way to check if image is loaded by jquery? I have some images with external src and sometime
src points to 404 page. Is there a way to check if that image is loaded? and then I can remove it from dom otherwise.</p>

<p>Thanks.</p>
