Available with CloudCannon hosting.
CloudCannon optimises sites so they load as fast as possible.
CloudCannon minifies CSS with clean-css and JavaScript with Uglifier. Externally hosted assets are not optimised.
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.
Optimisations are on by default, to toggle optimisations for your site:
- Go to the Site Settings / Details section
- Toggle Minify and serve assets from CDN
- Click Update Site
To turn off optimisations on individual elements, add the .cms-no-rewrite
class to the element.
<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 unoptimised version.