Skip to content
Learn · Performance

What is Gzip and Brotli compression?

Gzip and Brotli compress text files on the server before sending them to the browser.

Why it matters

They can shrink HTML, CSS and JS by 70% or more.

Practical tip

Check response headers for content-encoding to confirm compression is on.

Frequently asked questions

What is Gzip and Brotli compression?

Gzip and Brotli compress text files on the server before sending them to the browser.

Why does Gzip and Brotli compression matter for my website?

They can shrink HTML, CSS and JS by 70% or more.

Any practical tip about Gzip and Brotli compression?

Check response headers for content-encoding to confirm compression is on.

Related terms

More about performance