Asked 7 years ago
30 Dec 2016
Views 1148
web-api

web-api posted

how to load latest jQuery

how to get latest jQuery from GOOGLE CDN or any other source.
suppose


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


when new version of jQuery release . it should auto load latest jQuery.

so is there any way it auto load latest jQuery from google cdn or any other source
ravi

ravi
answered Nov 30 '-1 00:00

i advice you to change the latest jQuery manually because its give you time to track all problem before end user see it . so first test and than load next latest version manually .

DONT USE IT GIT VERSION
yes you can auto load latest jQuery without change of single line of code .

for that you need to put code as below :
 
<script src="https://code.jquery.com/jquery-git.min.js"></script>


it will give you latest jQuery version 3.1.2 which is unstable now .jquery-git.min.js give you always full latest version which is alpha version

so dont use it in production site

Post Answer