How do I minify HTML, CSS and JavaScript to optimize my site?

Cloudflare users interested in minifying HTML, CSS and JavaScript can activate Auto Minify in their Cloudflare settings. Auto Minify will remove all unnecessary characters from HTML, JavaScript, and CSS files.

The Auto Minify option can be found under the 'Speed' Section:

Note: Minify features will only work on direct server resources. Third-party script or code will not be minified.

Still not finding what you need?

The CloudFlare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk