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
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.
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 can set to execute JS after loading the JS Library:Google. setonloadcallback (function () {/
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, download is after all, it takes time, in case the code base has not been downloaded and the brows
Previously, jquery script library was introduced in the website as follows:
Sometimes we need to introduce other large script class libraries, such as prototype. Every time we introduce them, we have to consider how depressing customers are when they open the web page.
Now, Google and Microsoft provide CDN services for libraries such as
Since jQuery 1.3, I have not provided the pack version, and I am in favor of using Google CDN for code hosting.
This solution has the following benefits:
1. Smaller downloads.
We all know that there are as many as 38 kb after jQuery 1.3 pack. If you can delete the copyright annotation to get a smaller code, unfortunate
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
service node according to the network traffic and the connection of each node, the load condition and the distance and response time of the user. The goal is to enable users to get the content they need, solve the congestion of Internet networks, and improve the responsiveness of users to websites.Advantage:
Do not worry about your site visitors, at any time, any location, any network operator, can quickly open the site.
Various server virtual host bandwidth and other procurement c
If you don't want to download and store JQuery, you can also reference it through a CDN (content distribution network).The servers of Baidu, Google and Microsoft all have jQuery.JQuery Baidu CDN (domestic certainly choose Baidu or Sina)Load Address:
Not compressed:
Compression:Supported versions: 2.0.3, 2.0.2, 2.0.1,
, 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,
service node according to the network traffic and the connection of each node, the load condition and the distance and response time of the user. The goal is to enable users to get the content they need, solve the congestion of Internet networks, and improve the responsiveness of users to websites.Advantage:
Do not worry about your site visitors, at any time, any location, any network operator, can quickly open the site.
Various server virtual host bandwidth and other procurement c
Internet, the CDN system can redirect users' requests to the nearest service node in real time based on the network traffic and connection, load status, distance to the user and response time of each node.. The aim is to allow users to obtain the desired content nearby, solve the problem of Internet congestion, and improve the response speed when users access the website.
Advantages:Foreign CDN:
It can be
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
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/
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
JQuery ui:http://jqueryui.com/JQuery UI Introduction:The jquery UI is an open source JavaScript Web user interface code base based on jquery. Visual controls that contain underlying user interaction, animations, effects, and repla
plug-in, the UI has not been the best in performance for a long time, but no one can choose from it. Now there is a new plug-in, and we can see it, and we should give it a boost.
Jquery tools passed the test in the following browsers:
Internet Explorer 6 +
Firefox 2.0 +
Chrome 1 +
Opera 9 +
Safari 3 +
Because jquery tools is used to write many things, th
We recommend that you use Google's CDN-Content Delivery Network to load jquery library files on your website. Some may ask why Google's jquery library file should be loaded? (PS: do we usually load jquery library files on our servers ?). Haha ~~ As a matter of fact, I have always thought about loading
1. Many websites are introduced in this way, and customers ' browsers may have cached jquery. Can directly call local, faster ...
2. Google code uses CDN technology in many places have node servers, loading jquery is never more slow than on your server, except the local server:
3. Can save server traffic, reduce server
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.