title: JavaScript/jQuery best way to catch GET 404 error (image loading)
body: <p>I wrote simple code to check is image loaded</p>
  
  <pre><code>imageLoadErrorCheck: function() {
      $('img').on('error', function() {
          $(this).addClass('img_errorShowInfo');
          $(this).prop('src', '/assets/default/img/404.png');
      });
  },
  </code></pre>
  
  <p>but somehow in some cases this code is not working approx in 1 on 20 refreshes it's not triggering (I'm checking now in Chrome only).</p>
  
  <p>Is any better way to recognize when an image was not loaded?
  E.g. console always throwing GET 404 error, maybe is a way to catch this?</p>