javascript - Why does chrome still log 404 (Not Found) errors for missing images even after an onError handler has caught the exception? -


with reference issue: jquery/javascript replace broken images

i still exceptions in chrome console, when when images being correctly repalced using suggestions linked solution above:

get http://10.10.0.3/oc/media/profile-pics/2348022002298.jpg 404 (not found) 

i'm building large address book images saved mobile number. there potentially 1000's of 404 errors.

would performance issues - 1000's of failed image download attempts?

is there more efficient solution suggested in link?

my best alternative far seems build server-side , file replace ahead of time files cant find.

suggestions please, thanks.

because http requests still fail.

after fail use replacement, it's not preventing exception throw up.

to further explain, using @rgraham's comment below:

the console shows errors of many types. among which

  • javascript exception, unless handled.
  • network requests return error status(4xx,5xx).

the latter case. after happens, have solution, go , fail.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -