commonWP is a WordPress plugin (download) that enables usage of free, production-ready CDN (jsDelivr) for open source JavaScript and CSS files. Those files are:
- All files from WordPress core, unless development version of WordPress is used.
- All files from plugins hosted by WordPress.org Plugins Repository, unless author of specific plugin doesn’t use SVN tags for releasing.
- All files from themes hosted by WordPress.org Themes Repository.
- All files from plugins and themes hosted on GitHub that support GitHub Updater.
- All files marked as available on npm in any type of theme, plugin, or MU plugin.
It aims to be both lightweight and very secure. The approach used in this plugin is safer then in any other plugin that enables usage of any CDN. First, commonWP will only rewrite file to point to one on jsDelivr if that remote file is identical to local one. Second, during comparison, it generates subresource identity hash of remote jsDelivr file and includes that hash in page’s source code so browser won’t load remote file if it doesn’t have exactly the same hash.
There are no any settings. After activation, it will fill up its cache in the background, and that may take some time depending on number of resources site uses.
For much more details about commonWP, head over to its GitHub repository. Also check out code reference.
commonWP is released under the terms of GNU General Public License. It is completely free so if you find it useful you can give something back to author. Your help could be done by giving donation, sending pull request on GitHub, sending bugs and suggestions, promoting plugin in blogs, forums, social networks, and other websites.
Note: plugin author is not obliged to provide free support via this site, email, or official forum. If you ask for free support, please be aware that it might skipped.