by ihsw · 12y ago · 0 comments
https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.m...
http://www.sslshopper.com/article-ssl-certificate-renewal-ev...
http://cdnjs.com/ http://www.jsdelivr.com/ http://www.asp.net/ajaxlibrary/cdn.ashx
For example, the OP's link's cache will expire (theoretically) in the year 2079. So if a user visited ANY page that utilises JQuery v1.10.2 they already have it. That is a HUGE win. It is an even huger win for mobile (e.g. for small sites you could cut your network traffic in half, which in turn increases loading speed).
It is also trivial to set it up so the page tries the CDN first and if that fails then grab a local copy e.g.
<script src="//code.jquery.com/jquery-1.10.2.js"></script> <script>window.jQuery || document.write('<script src="lib/jquery-1.10.2.js">\x3C/script>')</script>