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

WP CDNjs Reborn

描述

Speed up your site by using the powerfull and free CDNjs. This plugin Allows you to search all http://cdnjs.com libraries and include them on your site.
Proudly served by Audioscavenger.

/!\ This is a fork from WP cdnjs by Mindshare Labs, which have merged since 0.3.0. I keep both projects up to date and they are now exactly the same. Maybe this one will disappear one day since both are the same and 100% compatibles.

Requires PHP 5.3 or newer

Browse by Name and Description

When browsing, the search key word look in the library names and description.

  • Shows library name
  • Shows description
  • Shows how many versions are available

Choose the Righ Version

Stop worrying about incompatibilities, WP CDNjs Reborn let you chose the version you really need!

  • Latest version selected by default
  • Minified version selected by default
  • Allows you to include the (non)minified version for debugging purposes

Add More Assets

Among the libraries served by CDNjs, you can add the assets related.

  • Shows all the assets associated with a library version
  • Allows you to change the main asset used
  • Allows you to add and remove assets
  • Shows the assets already used in grey to avoid addind duplicates

Manage Priorities

With an easy drag&drop, manage the order in which your libraries will be loaded.

  • Easy drag&drop
  • Header/Footer choice
  • Enable/Disable option

螢幕截圖

  • Dashboard: Set of libraries and usual messages.
  • Dashboard: Browse cdnjs Libraries example with popup.
  • Dashboard: Browse available versions for twitter-bootstrap.
  • Dashboard: Browse available assets for twitter-bootstrap.

安裝

Upload the plugin to your blog or install it via the dashboard, activate it, done.
The configuration page is found under Settings->WP CDNjs Reborn

This plugin requires PHP and JavaScript.

常見問題

Is WP CDNjs Reborn Free?

Yes! Every WP CDNjs Reborn’s features are and always will be free.

Do I need a WordPress.com account?

Since WP CDNjs Reborn do not provided hosted services by WordPress.com, a WordPress.com account is not required.

How do I contribute to WP CDNjs Reborn?

There are opportunities for developers at all levels to contribute.
You can clone the WP CDNjs Reborn Git and pull requests from here.

How can I change what action is used to enqueue the CDNJS scripts?

You can override the default action (‘init’) that enqueues the CDNJS script like so:

add_filter('wp_cdnjs_init_action', 'my_cdnjs_init_action');
function my_cdnjs_init_action() {
    return 'get_sidebar'; // the action tag you wish to use
}
Is it possible to have all enabled scripts load in the WordPress Admin area?

Yes. You can use this filter:

add_filter('wp_cdnjs_allow_in_admin', 'my_cdnjs_allow_in_admin');
function my_cdnjs_allow_in_admin() {
    return TRUE;
}

評價

2018年3月30日
A very useful plugin. It would be cool to add a replacement for all used scripts.
閱讀全部2個評價

貢獻者及開發者

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

貢獻者

將 WP CDNjs Reborn 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

0.3.3

Minor Update
* just tested for 5.2
* Minimum version required at least 5.1 to force you guys update core engine. Security matters.
* tested with both PHP 7.0 and 7.2.18

0.3.2

Minor Update
* just tested for 5.1.1
* Minimum version required at least 5.0 to force you guys update core engine. Security matters.

0.3.1

Minor Update
* just tested for 4.9.6 + updated EOL of main script
* Minimum version required at least 4.9 to force you guys update core engine. Security matters.

0.3.0

Major Enhancements
* Performance increase: Removed the query strings everywhere
* Removed font-awsome and switched to WP dashicons

0.2.4

Bug Fix
* Correct path to language files + add en_US.mo

0.2.3

Enhancements
* Ajout de la version Francaise, vieux.

0.2.2

Enhancements
* Creation of the readme.txt. This took me like 3 hours so it totally justifies a new release.

0.2.1

Major Enhancements
* add menu_icon + css assets
* rename wp-cdnjs.php to wp-cdnjs-reborn.php
* integrate 0.13 functions
* move main functions to lib/functions.php
* add minified js
* table in Settings is now full width
* cleanup php code everywhere

0.2.0

Major Enhancements
* Initial fork from wp-cdnjs.git to wp-cdnjs-reborn.git
* Fix the secondary assets you want to include
* Add column for choosing the exact version
* Add checkbox for choosing the the non-minified version