17 Comments

  1. Danny van Kooten

    Does this also replace the scripts in the admin panel, or just the ones referenced in the public section of the website (if any)?

    Report

  2. Keith Davis

    I’m always looking to speed things up and this looks pretty good.
    “created by Automattician and plugin developer Ben Lobaugh.” decent pedigree then.

    Have you tried it?

    Report

  3. Brian Krogsgard

    It’s worth looking back on the Twitter conversation Ben had with Nacin on this. It’s probably not a good idea.

    WordPress.com tracks closely to trunk, and there could easily end up with some brokenness / conflicts using this on a stable release of WordPress.org.

    Report

  4. Danny van Kooten

    @Brian Krogsgard -My thoughts exactly.

    I just took a quick look at the code. The plugin replaces the site url of every script referenced in the wp-includes folder with wordpress.com, doesn’t take versions etc. into account.

    My guess it this makes it really easy to break stuff if one is using the plugin on an older WordPress version…

    Report

  5. Otto

    Yeah, I would be worried about version conflicts. I’m sure that is a solvable problem, but realistically, I’m not sure that using the WordPress.com systems for this is any better of an idea than using the Use Google Libraries plugin.

    The main problem with offloading library loads like this is simply one of connectivity. You’re relying on your site’s viewers being able to connect to that external service (Google, wp.com, etc) to load the JS files. While this is relatively true in most places, in many cases it is not, which is why the default is to package files with the core, so that you have everything needed for the site to work anywhere.

    With Google, they maintain version numbers as part of the request, so you can be assured that the version conflict problem won’t happen. WP.com does not currently do this that I know of, although that would be easily solvable on their end.

    It’s likely that WP.com has more of the libraries than Google’s JS library mirrors do though, so there is that.

    In the end, I’d suggest using the Google libraries plugin if you want this sort of speedup, and even then it’s a minor speedup at best. Most people don’t use tons of Javascript on the front-end of their sites. For those that do, reducing that would be better in the long run. Sure, loading jQuery from a CDN is faster, but it can be problematic for some users.

    Report

    • Piet

      Exactly, thanks for the thorough explanation Otto.

      I’m located in one of those countries where wordpress.com is blocked entirely, so if I were to install this plugin, for starters my site would stop functioning for myself and with it all visitors from here and other countries where wordpress.com is blocked…

      Report

  6. Sergey Biryukov

    There are some stability concerns. Once JS libraries are updated in trunk and on WP.com (which follows trunk), the current version of the plugin may no longer work with stable WordPress versions:
    https://twitter.com/nacin/status/412454516475191296
    https://twitter.com/benlobaugh/status/412496440363978752

    Report

  7. Ben Lobaugh

    Hey all – Thanks for the interest! I did not think this plugin was going to kick off so fast! After chatting with Nacin yesterday I realized there could be some issues with how WordPress.com merges files from WordPress trunk. I am currently running this plugin on my personal site with no issues but if you want to run it on yours make sure you check for breakage after installing it, and monitor when 3.9 development begins.

    I am looking into how to make a proper solution to this as well.

    Report

  8. Nico Morrison

    Plugin must have been pulled? “Whoops!

    We couldn’t find that plugin. Maybe you were looking for one of these? ”

    Nico M
    London

    Report

  9. Sarah Gooding

    @Ben Lobaugh -@Ben Lobaugh – Did you end up pulling the plugin?

    Report

  10. Greg Winiarski

    Too bad this could be an interesting alternative to Google CDN at least for some users.

    Report

  11. Will

    Weird…the plugin poofed into thin air. What happened?

    Report

  12. Ben Lobaugh

    Until the plugin has a better way of supporting the scripts it has been removed from WordPress.org so that users do not install it and suddenly have a site behaving erratically.

    For anyone still interested in checking it out it can still be found in my Github account. Just keep in mind that updates to core libraries will appear on WordPress.com before they appear in the official WordPress releases. If your site is using up to date code then it may not be an issue if one of the WordPress.com linked libraries is updated before your WordPress site is due to backward compatibility.

    I am working with the WordPress.com team to create a good solution, but until it is done I have decided the plugin should be pulled from the plugin repository so that it does not inadvertently harm anyone’s site. It is still fair game on Github and pull requests are welcome :)

    https://github.com/blobaugh/use-wpcom-libraries

    Report

  13. Ulrich

    jsDelivr does something similar but you have more control and it uses multiple CDNs and VPNs with a load balancer.
    http://blog.maxcdn.com/load-balancing-multiple-cdns-jsdelivr-works/

    Report

  14. Li-An

    And what about if I use a minify plugin ? Will the js files from WP.com concerned ?

    Report

  15. Buntu Redempter

    Does this plugin work in Multisite Network?

    Report

  16. seotheblog2

    Hi Sarah, just letting you know that this plugin is no longer available on the repository. Cheers!

    Report

Comments are closed.

%d bloggers like this: