WP cdnjs

WP cdnjs

Integrates easily CSS and JavaScript Libraries hosted by CDNjs.com. Browse, select version and sub-assets to fit your needs.

  • Almost active
    This plugin was not updated the last 2019 days ago.
  • This plugin is not tested with the last major release of WordPress
    Content for list item
  • There is no information available which PHP version this plugin requires
    The latest stable PHP 8.4.13 was released on 25 September 2025
  • No information about vulnerabilities and unfixed security issues is available.
    Content for list item

Ratings

3

Active installs

60

Total Downloads

6K

Support Threads

0

Last updated

20 March 2020

Added

08 August 2014

Versions

100%
  • Version 0.4

Screenshots

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.

About WP cdnjs

FAQ

Is WP cdnjs Free?

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

Do I need a WordPress.com account?

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

How do I contribute to WP cdnjs?

There are opportunities for developers at all levels to contribute.
You can participate to the development via the developer section with SVN.

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;
}

Changelog

0.4.0

Major Bungfix
* CDNJS does not provide assets list via their API
* tested for WP 5.3 + updated min req version to 5.1
* tested with PHP 7.3
* tested with PHP 7.2

0.3.3

Minor Update
* just tested for 5.2 + updated min req version to 5.1
* tested with both PHP 7.0 and 7.2.18

0.3.2

Minor Update
* just tested for 5.1.1 + updated min req version to 5.0

0.3.1

Minor Update
* tested for 4.9.6 + updated EOL for main script

0.3.0

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

Minor Enhancements
* Minimum version set to 4.9 because we refuse to serve outdated WP versions anymore. Security is everyone’s matter, you must therefore use an up-to-date WP.

0.2.4

Bug Fix
* Correct path to language files + added 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
* 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

0.1.3

0.1.2

0.1.1

0.1

How to install WP cdnjs

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

This plugin requires PHP and JavaScript.