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

  2. 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?

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

  4. @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…

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

    1. 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…

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

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

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

  9. 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 :)


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

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

Comments are closed.