Use CDN and AJAX to accelerate jQuery loading in WordPress

Source: Internet
Author: User
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 inOtherwise, the loading speed of the head part is affected, which directly causes the loading delay of the website content (body. If you are sure you do not need to load jQuery in the head part, please move the loaded codeFirst, it is accurate to say that it is the first javascript code that will use jQuery functions.

Of course, if you need to load jquery in the head part, make sure that all js files, including jquery, are placed after the code of the CSS file is called for Synchronous download. This is also an official suggestion from Google. For example, the following loading is not recommended:

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.