WordPress.org

Ready to get started?Download WordPress

Plugin Directory

CDNJS for WordPress

CDNJS plugin allows you to include/replace Javascript and CSS libraries used on your WordPress site and serve them using CDNJS.com

How can I install the plugin?

This plugin should install as any other WordPress.org respository plugin.

  1. Browse to Plugins -> Add Plugin
  2. Search: CDNJS
  3. Click Install
  4. Click to Activate.

Alternatively using FTP:

  1. Download the zip file using the download link to the right.
  2. Extract the contents of the file and locate the folder called 'cdnjs' containing the plugin files.
  3. Upload this whole folder to your '/wp-content/plugins/' directory
  4. From the plugins page within WordPress locate the plugin 'CDNJS' and click Activate

A new menu item will appear on the left-hand side called 'CDNJS'. Click this menu and select 'Includes'.

Select the includes you desire. Only select what you need.

How does this affect the JQuery supplied with WordPress itself?

If you select the option, it will include the currently latest available JQuery and replace the one that comes with your WordPress distribution.

Why would I use this plugin at all?

As just another little boost your website page-load performance. If your visistors are using the CloudFlare/CDNJS files their pages should load quicker, and as more and more people use the CDN, it'll help everyone load their sites quicker!

What has Worpit got to do with Cloudflare and CDNJS?

Not a lot, but we like website optimizations and making things faster/better. We saw this project on the Cloudflare blog and instantly wanted to use it on our sites. What easier way than to make a plugin, and then we can share it too.

The plugin doesn't list the Javascript/CSS that I want?

Your webhosting either doesn't support the file_get_contents() for URLs, or doesn't have json_decode function/library for PHP.

The page for choosing the libraries loads very slow - why?

It's pulling in the complete list of libraries available each time. It only does this on this page, so don't worry about this each time you load your site.

Requires: 3.5.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-2-3
Downloads: 1,881

Ratings

4 stars
4 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0 0,1,0 100,2,2
100,1,1
0,1,0