For years, Use Google Libraries was my favorite plugin because I liked what it did and I liked how it did that.
Back when Google hosted libraries were used, there were only a few libraries. But over time independent public CDNs popped up with much more choices. I experimented with cdnjs in the past but I never released my work past GitHub.
Then, a year ago, I saw that jsDelivr (one of public CDNs) was revamped so that all files hosted on npm, GitHub, and WordPress.org Plugins Repository are available. Immediately, I got idea for a WordPress plugin that can force sites to use files from jsDelivr rather than local one. Why I didn’t release it back then? Because I wanted to make this as secure as possible, and also as simple as possible.
Second thing I liked about Use Google Libraries was that it just worked: there are no settings, options, any UI. It followed WordPress philosophy that I also follow: “Decisions, not options.”
I finally released commonWP: it’s dead simple to use (just activate it and it works!), it tries to be as secure as possible, it gives developers options to fine tune it (with a lot code examples and a code reference to guide them).
It is not for everyone but many can get real benefits while using it. Take this one example I tested: Serbian site hosted in US got over 1 second improvement because files were now served from jsDelivr’s POP in Belgrade, not by origin on another side of ocean, and all that for free.
2 thoughts on “Introducing commonWP”
Thanks for updating the plugin