What is text compression (gzip and Brotli)?
Text compression shrinks your page’s HTML, CSS and JavaScript before the server sends them, so visitors download far fewer bytes and the page arrives faster. Gzip and Brotli are the two methods:
- Gzip - the long-standing standard, supported by every browser and host, typically cutting text files by around 70%.
- Brotli - newer and a bit more efficient than gzip, especially on CSS and JavaScript; supported by all modern browsers.
- It only applies to text - images and video are already compressed and are not affected.
Compression is almost always a simple on/off setting on your host or CDN, and there is no reason to leave it off. Make sure gzip or Brotli is enabled on your server - it is free, invisible to visitors, and shrinks every page.