title: How to know that dynamically created script tag was executed?
body: <p>I'm creating a script tag dynamically:</p>
  
  <pre><code>var head = document.getElementsByTagName('head')[0];
  var script = document.createElement('script');
  script.type = 'text/javascript';
  script.charset = 'utf-8';
  script.defer = true;
  script.async = true;
  script.text = 'some my javascript content here';
  head.appendChild(script);
  
  script.onload = function () {
      // this never get fired..
      debugger;
  }
  </code></pre>
  
  <p>How to get notified when script was executed inside other code block? Maybe some event?</p>