Latest jQuery version on Google s CDN

0 votes

I read in the official doc of the Google CDN that this is the src to jQuery:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>

However, it is annoying to have to change my jQuery src reference at each version update.

I've found that if I set the version to 1 then Google returns the latest version of jQuery.

http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
/*! jQuery v1.8.2 jquery.com | jquery.org/license */

Is this the right thing to do? Is there any official URL to reference the latest version of jQuery hosted on the Google CDN?

Jun 13 in JQuery by gaurav
• 17,760 points
100 views

1 answer to this question.

0 votes

Google provides CDN support for jQuery via the googleapis.com domain. The latest version of Google CDN provides four different types of jQuery versions- normal (uncompressed), minified, slim, and slim & minified. Google CDN provides the jQuery via ajax.googleapis.com domain

Stable release 3.6.0 / (March 2, 2021)
Repository github.com/jquery/jquery
Written in JavaScript
Platform See § Browser support
answered Jun 13 by rajatha
• 7,040 points

Related Questions In JQuery

0 votes
1 answer

Downloading jQuery UI CSS from Google's CDN

The Google AJAX Libraries API, which includes ...READ MORE

answered Jun 1 in JQuery by Edureka
• 13,640 points
84 views
0 votes
1 answer

How to remove close button on the jQuery UI dialog?

Hii, I found this worked for me in the end ...READ MORE

answered May 12, 2020 in JQuery by Niroj
• 82,740 points
3,182 views
0 votes
1 answer
0 votes
1 answer

How to attach callback to jquery effect on dialog show?

Hello, Try out the code using jQuery Promise object: $("#dialog").dialog({ ...READ MORE

answered May 30, 2020 in JQuery by Niroj
• 82,740 points
768 views
0 votes
1 answer

How to set jquery input select all on focus?

Hello @kartik, Try using click instead of focus. It seems to ...READ MORE

answered Nov 24, 2020 in JQuery by Niroj
• 82,740 points
1,615 views
0 votes
1 answer

How to trigger a click on a link using jQuery

If you are trying to trigger an ...READ MORE

answered Jun 3 in JQuery by Edureka
• 13,640 points
375 views
0 votes
1 answer

Where are the source files on the Jquery.com website? I see no download link

Download Jquery by clicking on this link ...READ MORE

answered Jun 10 in JQuery by gaurav
• 17,760 points
14 views
0 votes
1 answer

Is it possible to use jQuery .on and hover?

jQuery hover() Method The hover() method specifies two ...READ MORE

answered Jun 10 in JQuery by gaurav
• 17,760 points
29 views
0 votes
1 answer

How to trigger a click on a link using jQuery

$( "#foo" ). trigger( "click" ); As of jQuery ...READ MORE

answered Jun 10 in JQuery by rajatha
• 7,040 points
32 views
0 votes
1 answer

How to trigger a click on a link using jQuery

Use the jQuery click() Method You can use ...READ MORE

answered Jun 10 in JQuery by rajatha
• 7,040 points
27 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP