Support » Requests and Feedback » [Resolved] A advice

[Resolved] A advice

  • 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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

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

    Moderator Andrew Nevins


    Forum moderator

    Therefore it is local.

    The file call the Google JS.

    Moderator Jan Dembowski


    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.

    Thank you, Jan Rembowski.

    Moderator Samuel Wood (Otto)


    WordPress.org Tech Dude

    “/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.

    That was it!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] A advice’ is closed to new replies.