title: How can I block the execution of a script until another one is loaded?
body: <p>Suppose I load these scripts from my host webpage :</p>
  
  <pre><code>&lt;script src="http://www.mywebsite.com/widget/widget.js?type=normal" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="http://www.mywebsite.com/widget/widget.js?type=rotation" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>and I'd like to execute the second one only when the first one have finished (totally; it can contain asynch functions).</p>
  
  <p>How can I do it?</p>