Title: commonWP
Author: Milan Dinić
Published: <strong>2018 年 9 月 14 日</strong>
Last modified: 2019 年 2 月 24 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/commonwp.svg)

# commonWP

 作者：[Milan Dinić](https://profiles.wordpress.org/dimadin/)

[下载](https://downloads.wordpress.org/plugin/commonwp.1.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/commonwp/#description)
 * [评价](https://cn.wordpress.org/plugins/commonwp/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/commonwp/#developers)

 [支持](https://wordpress.org/support/plugin/commonwp/)

## 描述

commonWP is a plugin that enables usage of free, public CDN ([jsDelivr](https://www.jsdelivr.com/))
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](https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/#tagging-new-versions).
 * All files from themes hosted by WordPress.org Themes Repository.
 * All files from plugins and themes hosted on [GitHub](https://github.com/) that
   support [GitHub Updater](https://github.com/afragen/github-updater).
 * All files marked as available on [npm](https://www.npmjs.com/) 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](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)
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](https://github.com/dimadin/commonWP).

## 评价

![](https://secure.gravatar.com/avatar/8da0986052c1c3899c72f4f06071779e013297278c2daa84c8dde975fdfdb848?
s=60&d=retro&r=g)

### 󠀁[It does the job beautifully](https://wordpress.org/support/topic/it-does-the-job-beautifully-2/)󠁿

 [Cristian J. Hidalgo](https://profiles.wordpress.org/sircam73/) 2023 年 12 月 21
日

Period.

![](https://secure.gravatar.com/avatar/cdf9b2709188a2f36dc5d9e01910afcb87f4900632a0f996d543aa2b4891242a?
s=60&d=retro&r=g)

### 󠀁[Good Job!](https://wordpress.org/support/topic/good-job-1427/)󠁿

 [sagas1324](https://profiles.wordpress.org/sagas1324/) 2021 年 3 月 27 日

Thank you, working ! ☺

![](https://secure.gravatar.com/avatar/133d79eae72e04f2ec4c75e584f688a646235b389161a85a0d1c384d5d28dbfb?
s=60&d=retro&r=g)

### 󠀁[Works great](https://wordpress.org/support/topic/works-great-7253/)󠁿

 [bsmolyanov](https://profiles.wordpress.org/bsmolyanov/) 2020 年 11 月 14 日

I trully hope this wonderful plugin will be supported!

![](https://secure.gravatar.com/avatar/a402a66cd2e743108402a060a3a9f68e27124af71189a63ebc827104734cd551?
s=60&d=retro&r=g)

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-6739/)󠁿

 [SandyMe](https://profiles.wordpress.org/sandyme/) 2020 年 5 月 8 日 1 回复

Just install, activate, and immediate improvement. Thank you!!! Your work is appreciated.

![](https://secure.gravatar.com/avatar/4f0ef294038989ca9f0131e0a0627b0c289f0c498e3bdeb97f21f6fe940065a8?
s=60&d=retro&r=g)

### 󠀁[One of the best FREE plugin](https://wordpress.org/support/topic/one-of-the-best-free-plugin-5/)󠁿

 [Julian Song](https://profiles.wordpress.org/julians3/) 2019 年 9 月 30 日

Thank you for such amazing plugin

![](https://secure.gravatar.com/avatar/c4013d605692b83e8352621b52cd24ca743bd7918df5ddad2677f9136d775ff8?
s=60&d=retro&r=g)

### 󠀁[Doesn’t play well with AutOptimize](https://wordpress.org/support/topic/doesnt-play-well-with-autoptimize/)󠁿

 [mesmer7](https://profiles.wordpress.org/mesmer7/) 2019 年 9 月 22 日 1 回复

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条评价 ](https://wordpress.org/support/plugin/commonwp/reviews/)

## 贡献者及开发者

「commonWP」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Milan Dinić ](https://profiles.wordpress.org/dimadin/)

「commonWP」插件已被翻译至 6 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/commonwp/contributors)
为本插件所做的贡献。

[帮助将「commonWP」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/commonwp)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/commonwp/)，查看[SVN仓库](https://plugins.svn.wordpress.org/commonwp/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/commonwp/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/commonwp/)。

## 更新日志

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

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**7 年前**
 *  活跃安装数量 **400+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **5.1.22**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/commonwp/) 、 [Dutch](https://nl.wordpress.org/plugins/commonwp/)、
   [English (US)](https://wordpress.org/plugins/commonwp/) 、 [Italian](https://it.wordpress.org/plugins/commonwp/)、
   [Serbian](https://sr.wordpress.org/plugins/commonwp/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/commonwp/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/commonwp/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/commonwp)
 * 标签
 * [cdn](https://cn.wordpress.org/plugins/tags/cdn/)[free cdn](https://cn.wordpress.org/plugins/tags/free-cdn/)
   [jsDelivr](https://cn.wordpress.org/plugins/tags/jsdelivr/)[performance](https://cn.wordpress.org/plugins/tags/performance/)
 *  [高级视图](https://cn.wordpress.org/plugins/commonwp/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  16 条 5 星评价     ](https://wordpress.org/support/plugin/commonwp/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/commonwp/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/commonwp/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/commonwp/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/commonwp/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/commonwp/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/commonwp/reviews/)

## 贡献者

 *   [ Milan Dinić ](https://profiles.wordpress.org/dimadin/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/commonwp/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://milandinic.com/donate/)