When you’re running a large, active site, speed becomes absolutely critical. You don’t want to crash your server and miss out on potential traffic or customers. Anything that you can do to take the load off your servers is a good idea.
How can I use jsDelivr with WordPress?
Better site performance for free sounds great. jsDelivr can be used with WordPress with the help of the new jsDelivr WordPress CDN Plugin.
Why use jsDelivr with WordPress?
Not that I have to convince you, since you’re probably already installing it now… ;) But here are a few reasons why you should consider integrating your WordPress site with jsDelivr:
- Speeds up your website
- Cuts the bandwidth bill
- Offloads the server from extra requests
- There are no bandwith limits
jsDelivr makes it very easy to start using a CDN for your js files, even if you wouldn’t call yourself a developer. The plugin autocratically scans your WordPress install to see what it can offload. Here’s what else it does:
- On the fly rewriting of all URLs. No need to change the code.
- Move selected files to footer
- Compatible with W3 Total Cache and WP Super Cache
- Automatic synchronization with our DB.
- Allows you to select the files you want to load from the CDN
- Supports HTTPS
- Uses Google CDN to load jQuery to take advantage of the user’s browser cache.
How to use jsDelivr
The plugin is fairly easy to use, but a few extra instructions wouldn’t hurt.
Step 1: Install and Activate jsDelivr WordPress CDN Plugin
Step 2: Go to Settings >> jsDelivr CDN and click “Scan Website”
It may appear to be scanning forever, but this is a bug in the current version. Just wait awhile and refresh the page and you’ll see what the scanner found. This should be fixed in the next version.
Step 3: Enable all of the scripts you want to offload
Have a look through the scripts that the plugin finds and then enable those that you want to offload.
Step 4: Save your settings and enable the plugin.
Congrats, you should now be offloading a good number of your scripts! You can check by viewing the the source of your website to see where they are being hosted. You should also notice your site getting a little more zippy. Make sure to go through every page, especially those that make use of scripts, to be certain that the offloading didn’t break any functionality. If you notice any problems, just disable the script in question and use the version hosted on your server. I’ve tested the plugin this afternoon and didn’t have any problems offloading all the scripts that it recommended.
Better site performance for free – do you really even have to think about it? Install the jsDelivr WordPress CDN Plugin for free today and tell your friends about it. If you do a before and after speed test, we’d love to hear your results in the comments.