Skip to content

Optimizations

On this page:

Loading...

CloudCannon optimizes sites to load as fast as possible. CloudCannon minifies CSS with clean-css and JavaScript with Uglifier. Externally hosted assets are not optimized.

Note

Filenames containing -min or .min are not minified, as the filename suggests they have been minified already.

Assets referenced in the HTML and CSS are served from a CDN. Text based assets (e.g. HTML, CSS, and JavaScript) are gzipped before being served.

Optimizations are on by default, to toggle optimizations for your site:

  1. Go to the Site Settings / Compressor section
  2. Toggle Minify and serve assets from CDN
  3. Click Update Build Details

To turn off optimizations on individual elements, add the .cms-no-rewrite class to the element.

index.html
<a href="/newsletters/january-summary.pdf" class="cms-no-rewrite">Download Latest Newsletter</a>

The reference on the element remains the same, pointing to the unoptimized version.

On this page:

Loading...

Don’t miss the latest
CloudCannon news freshly delivered to your inbox