Yannis Dran
Yannis Dran

Reputation: 1529

Jquery-latest calls an old version

I use the http://code.jquery.com/jquery-latest.min.js to call the latest Jquery. I see this is the v.1.10.2 and not the v.1.11.0 as it should be. I understand that the v.1.11.0 is a stable version. So why does this happen?

Update: I use the following to load the latest.js and have a fallback as well:

<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.11.0.min.js">
<\/script>');
</script>

Upvotes: 1

Views: 144

Answers (1)

isherwood
isherwood

Reputation: 61063

Good question. It seems that the jQuery team intend for it to be immediate:

"The most commonly requested file is jquery-latest.js, which automatically updates whenever the jQuery Core team releases a new version."

There must be a problem or a mistake has been made. As others have said:

"Developers should never use jquery-latest.js or jquery-latest.min.js on a production site, it is primarily meant for testing."

http://blog.jquery.com/2014/01/14/jquerys-content-delivery-network-you-got-served

Upvotes: 1

Related Questions