Getting Jquery

What is the best way to insure you are ALWAYS getting the latest version of Jquery when you reference it externally?

For example, I have this in one of my files that use jquery:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

Seems odd (& dangerous) to reference a specific version #. Is there a way around this?

Thanks
Richard KortsBusiness Owner / Chief DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rainer JeschorCommented:
Hi,
afaik there is no direct latest jQuery version. jQuery had this once but it has been discontinued with the new version branch of 2.x.

They argue, that this puts your web site at a high risk, as you can never ensure that an update would not break any functionality.
Therefore this link
<script type="text/javascript"
src="http://code.jquery.com/jquery-latest.min.js" charset="utf-8">
</script>

Open in new window

references still the "old" 1.11.1 version.

Please see also:
http://blog.jquery.com/2014/07/03/dont-use-jquery-latest-js/

HTH
Rainer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rainer JeschorCommented:
Therefor to be sure, always reference a specific version - and watch the jQuery site regularly. If there is an update / new version, review the upgrade log on jquery.com and deploy it / test your site first on a test server (with all the necessary browser versions you want to support !!!).
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.