How to enable text compression (Brotli, gzip)
HTML, CSS and JavaScript shrink by 70–90 % when compressed. It is one server setting and it is usually already available.
Step by step, with screenshots: LiteSpeed Cache settings for Core Web Vitals, tab by tab →
Check your own site
Runs this check and the other 186, free, in about 45 seconds.
What a passing site looks like
- Text files are compressedwarning · −4 ptseffort S
Text compression
Why it matters. HTML, CSS and JavaScript shrink by 70–90 % with Brotli or gzip. Without it every visitor downloads several times more than needed.
- Turn on Brotli or gzip on the server or CDN (Cloudflare does it automatically; Apache mod_deflate/brotli; nginx gzip on).
- Check that your CDN or plugin is not serving already-compressed assets without the Content-Encoding header.