Is there a link to the “latest” jQuery library on Google APIs? [duplicate]

I use the following for a jQuery link in my <script> tags:

Is there a link to the "latest" version? Something like the following (which doesn't work):

(Obviously not necessarily a great plan to link your code to potentially changing libraries but useful in development.)



Up until jQuery 1.11.1, you could use the following URLs to get the latest version of jQuery:

For example:

<script src=""></script>

However, since jQuery 1.11.1, both jQuery and Google stopped updating these URL's; they will forever be fixed at 1.11.1. There is no supported alternative URL to use. For an explanation of why this is the case, see this blog post; Don't use jquery-latest.js.

Both hosts support https as well as http, so change the protocol as you see fit (or use a protocol relative URI)

See also:


DO NOT USE THIS ANSWER. The URL is pointing at jQuery 1.11 (and always will).

Credits to Basic for above snippet is the minified version, always up-to-date.


Be aware that caching headers are different when you use "direct" vs. "latest" link from google.

When using

Cache-Control: public, max-age=31536000

When using

Cache-Control: public, max-age=3600, must-revalidate, proxy-revalidate

Don’t Use jquery-latest.js

This file is no longer updated (it'll be on v1.11.1 forever). Furthermore it has a very short cache life, (wiping out the benefits of using a CDN) so you'd be better of selecting a version of jQuery instead.

More details on the jQuery blog:


Not for nothing, but you shouldn't just automatically use the latest library. If they release the newest library tomorrow and it breaks some of your scripts, you are SOL, but if you use the library you used to develop the scripts, you will ensure they will work.



<script type="text/javascript" src="//"></script>
<script type="text/javascript">
    google.load("jquery", "1");
    //google.load("jqueryui", "1");
    //google.load("swfobject", "1");

Note: The above snippet will stick to 1.7.1 or 1.11.1.

My advice for production is to hard code the CDN jQuery version: <script src="//"></script>

You can find the latest Libraries of Google CDN here:

Or use the jQuery CDN:


jQuery also doesn't allow you to call their latest file over SSL, a consideration if you want to use jQuery in a shopping cart etc.


<script type="text/javascript" src=""></script>

will give you a security error.

Google's API will let you call over SSL:

<script type="text/javascript" src=""></script>
<script type="text/javascript">
  google.load("jquery", "1.7");

No. There isn't..

But, for development there is such a link on the jQuery code site.


What about this one?

I think this is always the latest version - Correct me, if I'm wrong.

Answer is a page where you can find links to the latest versions of jQuery, jQuery UI and Themes for Google and Microsoft CDN's.

This page automatically updates with the latest links from the CDN.


You can use the latest version of the jQuery library by any of the following.

  • Google Ajax API CDN (also supports SSL via HTTPS)

    <script type="text/javascript" src=""></script>


  • Microsoft CDN (also aupports SSL via HTTPS)

    <script type="text/javascript" src=""></script>

    Ajax CDN Announcement, Microsoft Ajax CDN Documentation

  • jQuery CDN (via Media Temple)

     <script type="text/javascript" src=""></script>

    ** Minified version

     <script type="text/javascript" src=""></script>

    ** Development (Full) version


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.