~dvko/wp-cdn-loader

A WordPress plugin to rewrite asset URL's to use a CDN instead of locally hosted files
2eb5bbfb — Danny van Kooten a month ago
require composer/installers
d45a068b — Danny van Kooten a month ago
spacing"
9be0bd7f — Danny van Kooten a month ago
fix license identifier in composer.json

clone

read-only
https://git.sr.ht/~dvko/wp-cdn-loader
read/write
git@git.sr.ht:~dvko/wp-cdn-loader

You can also use your local clone with git send-email.

#CDN Loader for WordPress

Simple plugin that will load all public assets from a CDN instead of your local server.

#Usage

  1. Install the plugin
  2. Define the following constant in your wp-config.php
define( 'DVK_CDN_URL', '//xxxxxx.cloudfront.net' );

The plugin won't replace assets when SCRIPT_DEBUG is enabled.