title: JavaScript inline event listeners...do they wait for JS to load?
body: <p>I normally work with jQuery as it's convenient to use the document ready feature so I can wait until the DOM is ready before attaching event listeners to DOM elements.</p>
  
  <p>I've inherited a project that, at least for a while, is going to be using a lot of inline event calls:</p>
  
  <pre><code>&lt;element onclick="doThis()"&gt;
  </code></pre>
  
  <p>Not pretty, but what I have to work with.</p>
  
  <p>Normally I'd load the JS file at the bottom of the HTML page. However, if I do that in this case, does the event wait until the document is ready (body load) to try an execute, or will that onclick event fire as soon as the element is clicked regardless of whether or not that big JS file has loaded yet?</p>
  
  <p>I think the latter happens, meaning that in this situation, I can't be moving my JS file out of the HEAD for now. But wanted to confirm. </p>