I recently had some code I wrote a year ago fail because someone linked my code to
http://code.jquery.com/jquery-latest.js
In the latest version, jquery had deprecated/replaced a function.
Nice to have a dynamically updated version but my code isn’t going to change, it’s going to break. Is there any reason to use jquery-latest?
4
“Latest” could be useful during initial development to keep up with the most recent changes. jQuery does provide feature updates relatively often. Expect your code using it to break. When you release your project you should support, reference, and document a specific jQuery version. Typically it’s safe to reference a minor version and support revision changes since the interfaces won’t change (e.g. 1.9.x).
0