title: What is the best way to include latest version of jQuery?
body: <p>I'm developing sites using Wordpress and I want to use the lates version of jQuery.</p>
  
  <p>To make sure I use the lates version, I have found this piece of code from <a href="http://bavotasan.com/tutorials/force-wordpress-use-latest-version-jquery/" rel="nofollow noreferrer">Binary Bonsai's example</a>.</p>
  
  <p>What I see, is that he actually links to jQuery at Google API.</p>
  
  <p>So my question is, what is better.</p>
  
  <p>To link to jQuery on an external page?<br>
  <a href="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" rel="nofollow noreferrer">http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js</a></p>
  
  <p>or to have the jquery file locally?<br>
  <code>wp_enqueue_script('jquery', '/js/jquery-1.4.2.min.js');</code></p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Thanks to Colin, the answer is actually here:<br>
  <a href="https://stackoverflow.com/questions/2180391/why-should-i-use-googles-cdn-for-jquery">Why should I use Google&#39;s CDN for jQuery?</a></p>
  
  <p>But tjust in case you don't have <code>Google</code> in your search term, like me, I'll copy the answer from  John Gietzen</p>
  
  <ol>
  <li><p><strong>It increases the parallelism available.</strong><br>
  (Most browsers will only download 3 or 4 files at a time from any given site)</p></li>
  <li><p><strong>It increases the chance that there will be a cache-hit.</strong><br>
  (As more sites follow this practice, more users have the file already ready.)</p></li>
  <li><p><strong>It ensures that the payload will be as small as possible.</strong><br>
  (Google can pre-gzip-compress the file, making the time-to-download very small.)</p></li>
  <li><p><strong>It reduces the amount of bandwidth used by the server.</strong><br>
  (Google is basically offering free bandwidth.)</p></li>
  <li><p><strong>It ensures that the user will get a geographically close response.</strong><br>
  (Google has servers all over the world, further decreasing the latency.)</p></li>
  </ol>