javascript - Read response of failed script -


i'm trying include script including in script src

<script type="text/javascript" src="http://some-site.com/script.js"></script> 

sometimes fails 401 error. script, returned, nice read , execute here in case. i'd need read response.

i know there answer here, i'm trying without xhr, because response on xhr different (403), content (otherwise wouldn't care).


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -