title: Are separate Javascript Script tags isolated from each others errors?
body: <p>First I'll state what I am trying to achieve: I'd like to have some code that connects to my server via websockets. I send messages to the browser to tell it to reload, remotely. I'd like this code (barring it has no errors itself) to not be affected by other page errors, so that I can still hard refresh the page remotely to fix said errors. </p>
  
  <p>In my testing on latest Chrome and iPad safari, if a runtime exception occurs in one script tag, that js execution halts. However, any other javascript in other script tags still runs no problem. Is this expected behaviour, or am I just getting lucky? I've thrown TypeError's, <code>throw new Error('something')</code>, and undefined errors, and my other scripts still run fine. I do something like so:</p>
  
  <pre><code>&lt;script type='text/javascript' src='reloadCode.js'/&gt;
  &lt;script type='text/javascript' src='mainApp.js'/&gt;
  </code></pre>
  
  <p>If I throw a bajillion errors in <code>mainApp.js</code>, my websocket code still runs and refreshes the page in <code>reloadCode.js</code>, even if <code>mainApp.js</code> is evaluated first. </p>