這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

commonWP

描述

commonWP is a plugin that enables usage of free, public 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.

評價

2020年5月8日 1 reply
Just install, activate, and immediate improvement. Thank you!!! Your work is appreciated.
2019年9月22日 1 reply
When I first installed CommmonWP, it made a mess of my style sheet. I had to disable the AutOptimize setting, "Aggregate CSS-files", to make the plugins work together. Unfortunately, that doubled the number of HTTP requests, which added 1 whole second to the page load time.
閱讀全部18個評價

貢獻者及開發者

“commonWP” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

commonWP 外掛目前已有 5 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 commonWP 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.1.0

  • Released on 27th December 2018
  • Define scripts added in WordPress 5.0 that are available on npm.
  • Fix version of WordPress core on GitHub for major versions.
  • Disable Jetpack Site Accelerator for static files.
  • Minor inline documentation fixes.