What the Heck Is “Script Error?”

If you’ve done any work with the JavaScript onerror  event before, you’ve probably come across the following:
“Script error."
“Script error” is what browsers send to the onerror callback when an error originates from a JavaScript file served from a different origin (different domain, port, or protocol). It’s painful because, even though there’s an error occurring, you don’t know what the error is, nor from which code it’s originating. And that’s the whole purpose of window.onerror — getting insight into uncaught errors in your application.

Link: https://dzone.com/articles/what-the-heck-is-script-error?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev