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: