The jquery class library has a size of about 25 KB (minimum and gzip compression). The loading speed of the jquery class library is not ideal when the user's network speed is not ideal, we need to load jquery from the CDN network. One is to save some bandwidth, and the other is to bring users a faster page loading expe
, it is best to debug one after another, for example, you find 1.7.2 compatibility is good. This time you can discard the 1.6.2, you can use the 1.7.2 version of jquery to replace the 2.X new version.
Which jquery CDN library do you use?
jquery is too big! If your site is not fast,
stable for well-known reasons.Domestic provision of the same services have Sina SAE (http://lib.sinaapp.com) and Baidu Bae (Http://developer.baidu.com/wiki/index.php?title=docs/cplat/libs).Other public libraries: Https://developers.google.com/speed/libraries/devguide?hl=zh-CN#jqueryThese are CDN Accelerated JS Library, the national loading speed is not bad.How do I reference a
= "Http://cdn.jsdelivr.net/jquery/2.0.0/jquery-2.0.0.min.js"
It can be seen that the fastest foreign CDN is CDNJSCDN in China:
BaiduSrc= "Http://libs.baidu.com/jquery/2.0.0/jquery.min.js"
Seven cowsSrc= "Http://cdn.staticfile.org/jquery/2.0.0/jquery.min.js"
= "Http://cdn.jsdelivr.net/jquery/2.0.0/jquery-2.0.0.min.js"
It can be seen that the fastest foreign CDN is CDNJSCDN in China:
BaiduSrc= "Http://libs.baidu.com/jquery/2.0.0/jquery.min.js"
Seven cowsSrc= "Http://cdn.staticfile.org/jquery/2.0.0/jquery.min.js"
example 1.8), and Google will return the latest available version of the 1.8 series (1.8.0, 1.8.1, and so on), or you can have only the first number, then Google will return 1 The latest available version (from 1.1.0 to 1.10.2) in the series.
Microsoft CDN:
Copy Code code as follows:
Give it a shot yourself.
Tips: Using Google or Microsoft's jQuery has a big advantage:
Man
CDN stands for Content Delivery Network (CDN. The purpose is to add a new network architecture to the existing Internet to publish website content to the "edge" closest to the user's network ", this allows users to obtain the desired content from the nearest node to solve the problem of Internet congestion and improve the response speed of users accessing the website. Technically, it solves the slow respons
Share a few jquery of several domestic and foreign CDN accelerator nodes, convenient for the vast number of developers to call and save space, the official website is always the latest version of jquery So do not worry about the version update problem, the other accelerator node may not be in the updated version, so the decision to choose the issue.Address of off
Brief introductionIf your host is abroad, or at home but because the north-South interoperability problem open speed is not ideal, or the bandwidth itself is very small open speed is not fast, we need to do some other aspects of optimization to improve the speed of website access.What is a CDN public library?CDN Public Library refers to the common JS inventory pl
details, it's recommended to load Google jquery. Speaking of some of the students here will ask why the bias to load Google jquery library it? Let me talk to you about the benefits of using Google to load jquery library files.
Maybe loading jquery from Google is not necessarily faster than your site. But when
this:Google.load ("jquery", "1.3.2");
In this way we will be from Google's recent CDN image loaded with the jquery 1.3.2 version of the JS library, then you can write the normal JS code. However, even Google's CDN image, downloa
way, we load the JS library of jquery 1.3.2 from Google's latest CDN image, and then we can write the JS Code normally. However, even Google's CDN images take time to download. What if the browser has explained the following code before the code library is downloaded? We ca
Google jquery CDN Acceleration Point
Http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
Microsoft jquery CDN Acceleration Point
Http://ajax.aspnetcdn.com/ajax/jQuery/jquery
10 domestic and foreign jQuery CDN performance competitions, jquerycdn
JQuery is the most common and popular javascript library in front-end development. How can we load it to improve the performance of our projects and ask what to use CDN? When users access their websites, they load files from the server. Each server
Requirements Description
Website www.xxx.com, Environment WIN64 WAMP, distribution 3 Too server, main 1 units, 3 units. The images used in the/css/js are placed in the www.xxx.com/Public/directory. Requirements are introduced in the site/public directory js/css will automatically compress, facilitate the opening speed.
Original plan
Through Jsminify + htaccess, the request address of the
A few of the domestic jquery CDN service addresses are recommended:Sina CDN, feel very quickly, with a lot of people, recommended use!Http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.jsChange the version number in the code
This article mainly introduces how to use CDN and AJAX to accelerate jQuery loading in WordPress. Pay attention to the problems of Google connection in WordPress and CDN in the Mainland. For more information, see
Are you sure you want to put it in the Head part?
In fact, the best case is that js files are not stored i
This article mainly introduces how to use CDN and AJAX to accelerate jQuery loading in WordPress. pay attention to the problems of Google connection in WordPress and CDN in the mainland. For more information, see
Are you sure you want to put it in the Head part?
In fact, the best case is that js files are not stored i
Now the internet giants have provided some static resources public library for the vast number of developers to provide convenience;Because they have CDN nodes all over the place, using these repositories can speed up loading resources and save traffic.However, because there is a sacred wall of reason, I wait for the people living in the Celestial kingdom is not able to enjoy Google's resource pool;But Baidu's resource pool is also very good; recommen
Now the internet giants have provided some static resources public library for the vast number of developers to provide convenience;Because they have CDN nodes all over the place, using these repositories can speed up loading resources and save traffic.However, because there is a sacred wall of reason, I wait for the people living in the Celestial kingdom is not able to enjoy Google's resource pool;But Baidu's resource pool is also very good; recommen
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.