# 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.

Speed & Core Web Vitals · HTML version: https://getreport.app/learn/text-compression

## Text compression

Passing looks like: Text files are compressed.

**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.

**How to fix it.**

1. Turn on Brotli or gzip on the server or CDN (Cloudflare does it automatically; Apache mod_deflate/brotli; nginx gzip on).
2. Check that your CDN or plugin is not serving already-compressed assets without the Content-Encoding header.

Check your own page: https://getreport.app/
