Always have latest jQuery version
Did you come across the problem of changing the URL to point to the latest jQuery version, every time a new version is released? In this article, I am going to share with you a very simple and easy way to always have the latest jQuery version.
Always have latest jQuery version
If you are already referring to any existing version of jQuery, remove it and include the following code:
<script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
Once you include the above code, you will never have to change your web pages again to point to latest jQuery version, whenever one is released. The above link will always point to the latest jQuery version so you are rest assured that you will be able to access all the previous features (except deprecated ones) and the new features as well.
That’s it!
Do you know of any other ways to always include latest jQuery version in your web pages? Feel free to suggest by commenting below.