I wonder if there is method or posibility to load latest jQuery library to with PHP.
Let’s say at the moment I have:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
I would like to achiev something like:
<script src="$latest-jquery-url" type="text/javascript"></script>
Where $latest-jquery-url would be updated on page load.
And most important, is that a wise thing to do? Any compatibility issue could occur or?
There is no need to keep up with jQuery latest version:
This will always have the latest jQuery that Google serves without you changing the version number, however this can break your web application without notice when outdated functions are used.