Home > Article > Web Front-end > 25 steps to improve your jQuery and improve efficiency by a thousand times_jquery
1. Load jQuery from Google Code
Google Code has hosted a variety of JavaScript libraries. Loading jQuery from Google Code is better than loading it directly from your server. More advantages. It saves bandwidth on your server and can quickly load JS libraries from Google's Content Distribution Network (CDN). More importantly, if a user visits a site published on Google Code it will be cached.
This makes sense. How many sites use the same copy of jQuery that isn't cached, and this is easy to do, introduce: