title: IE7 appends but doesn't load <script> when injected
body: <p>I have a JS that lives before closing <code>&lt;/body&gt;</code> tag that contains a method that injects another <code>&lt;script&gt;</code> element to load a JS file if a certain action is performed.</p>
  
  <p>The code snippet for the append looks something like this:</p>
  
  <pre><code>var script = document.createElement('script');
  
  script.setAttribute('type', 'text/javascript');
  script.setAttribute('src', 'http://path/to/script.js');
  
  document.body.appendChild(script);
  </code></pre>
  
  <p>That code works fine on all browsers except for IE7.  On IE7, it successfully appends the script into the DOM, but does not load it.</p>
  
  <p>Another thing that I'd like to point out is that I have also tried to append that script to <code>&lt;head&gt;</code> and it still doesn't work.</p>