How to tell if a tag failed to load

There is no error event for the script tag. You can tell when it is successful, and assume that it has not loaded after a timeout:

<script type="text/javascript" onload="loaded=1" src="https://stackoverflow.com/questions/538745/....js"></script>

Leave a Comment