How to enable compression
Compression shrinks pages and scripts so they download faster, especially on mobile.
Why it matters
Text files like HTML, CSS and JavaScript usually shrink by 70% or more when compressed. It is one of the cheapest speed wins there is, often a single switch.
Steps
- Enable gzip or Brotli in your server, host dashboard or CDN settings.
- Reload the page and check the response header content-encoding.
Check it worked
In developer tools, open the Network tab and click the page. The content-encoding response header should read gzip or br.
Not sure if this affects your site?
Run a free scan to see exactly which of these your website needs.