title: Why do I link my jquery inside a document.write?
body: <p>What is the purpose of this code:</p>
  
  <pre><code>&lt;script&gt;window.jQuery || document.write('&lt;script src="jquery-1.11.3.min.js"&gt;&lt;\/script&gt;')&lt;/script&gt;
  </code></pre>
  
  <p>as opposed to:</p>
  
  <pre><code>&lt;script src="jquery-1.11.3.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>..when linking jquery to my html file.</p>
  
  <p>This might be a stupid question.  I'm new to web development.  My jquery won't work when I use the first code.  When I cut it down to the second code, it loads but it is glitchy.  I have this code just before <code>&lt;/body&gt;</code>.  Any help is greatly appreciated. </p>