jquery is a very popular JS front-end framework that can be seen on many websites. Many web sites like to use some jquery CDN acceleration services, so that websites can load jquery faster. Some of the sites in the previous fire-end network were using Google's jquery CDN, such as: Http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js, But because of the recent Google can't open, these CDN address also can't access, and JS often put in the head of the webpage, JS can not access causes the website to open very slowly, can only replace the CDN link.
A few of the domestic jquery CDN service addresses are recommended:
★ Sina CDN, feel very quickly, with a lot of people, recommended use!
1 |
<script src= "http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js" ></script> |
Other versions can find addresses here Http://lib.sinaapp.com/?path=/jquery
★ Baidu CDN
1 |
<script src= "http://libs.baidu.com/jquery/1.9.1/jquery.min.js" ></script> |
Change the version number in the code between the other versions.
CDN for ★360
1 |
<script src= "http://libs.useso.com/js/jquery/1.9.1/jquery.min.js" ></script> |
The other version is also directly modified version number can be
If you are concerned about a CDN address load failure, you can load the local jquery
1 |
<script type= "text/javascript" > |
2 |
!window.jQuery && document.write( ‘<script src="js/jquery.min.js"><\/script>‘ ); |
Load CDN Accelerator Service Address