About WordPress Back page loading Ajax.googleapis special slow solution

Source: Internet
Author: User

By examining the elements found, the main drag slow background loading speed is two paths

1.https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js

2.http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/smoothness/jquery-ui.css

Are Google's, now the domestic visit to Google is almost impossible to access, must be FQ, the following is the solution to these two things

The first type:

Through the WordPress background install ' Disable Google Fonts ' This plugin, this is the simplest solution, the Internet is mostly used this, but I tested a bit, no effect, did not effect the next look down!

The second type:

1. First solve the prototype.js, find the wp-includes below the script-loader.php, find the string ' prototype '

$scripts Array (), ' 1.7.3 ');

We'll switch to Bootstrap CDN Accelerator code.

2. Solve the Jquery-ui.css, find the wp-includes below the functions.php file, add the following code at the bottom, the idea is to replace

 function  hc_cdn_callback ( $buffer    Str_replace  (' ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/smoothness/jquery-ui.css ', ' Cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.css ',  $buffer   function   Hc_buffer_start { ob_start  ("Hc_cdn_callback"  function   Izt_buffer_end () { ob_end_flush  ();} Add_action ( ' init ', ' Hc_buffer_start '  ' shutdown ', ' hc_ Buffer_end '); 

To see your specific string format, you may need to modify a little bit of content!

There is a better way to share, if there are errors please also point out, thank you!

About WordPress Back page loading Ajax.googleapis special slow solution

Related Article

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.