title: Execute my jQuery script after dynamically inserted jQuery library has finished loading
body: <p>I am dynamically inserting the jQuery library on a page via <code>&lt;script&gt;</code> tag:</p>
  
  <pre><code>jq = document.createElement('script');
  jq.setAttribute('src','//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js');
  b.appendChild(jq);
  </code></pre>
  
  <p>Then I have some jQuery script that needs to run after the jQuery library has finished loading and is ready for use:</p>
  
  <pre><code>$(f).load(function() {
      $(f).fadein(1000);
  });
  </code></pre>
  
  <p>How can I make it wait for jQuery to load?</p>