[resolved] A advice (9 posts)

  1. peascloud
    Posted 3 years ago #

    I think that WordPress uses Google JavaScript is not a good decision.In China,Google sometimes be masked.I think the best use of local JavaScript in the next release.

  2. WordPress DOES NOT use Google Javascript. WordPress includes all the used Javascript libraries. Maybe your theme or a plugin is deregistering a local file and calling it from Google instead.

  3. peascloud
    Posted 3 years ago #

    "/wp-includes/script-loader.php",this file using the Google JS.

  4. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    Therefore it is local.

  5. peascloud
    Posted 3 years ago #

    The file call the Google JS.

  6. I'm reasonably sure he means this part around line 872 of that file.

    // WordPress no longer uses or bundles Prototype or script.aculo.us. These are now pulled from an external source.

    I suspect that it's done that way so copies do not have to be maintained with WordPress and that's probably a good decision.

    You can always use wp_enqueue_script to de-queue and re-queue local copies if you want.

  7. peascloud
    Posted 3 years ago #

    Thank you, Jan Rembowski.

  8. "/wp-includes/script-loader.php",this file using the Google JS.

    That file includes links to the Google versions of those two libraries, but only for backwards compatibility.

    WordPress itself no longer uses or includes the Prototype or script.aculo.us libraries, and so in a normal setup with normal usage, there will be no links to Google's copies of those libraries anywhere on the site.

    If you are using an older plugin or theme that depended on one of those libraries being in WordPress, then those links will appear on the site, but if not, then they won't.

  9. peascloud
    Posted 3 years ago #

    That was it!

Topic Closed

This topic has been closed to new replies.

About this Topic