Brotli
Brotli is a modern compression algorithm often better than gzip, reducing HTML/CSS/JS transfer size and improving load speed.
Definition
Brotli is a compression algorithm commonly used for text assets like HTML/CSS/JS. Compared to gzip, Brotli often achieves better compression ratios, reducing transfer size and improving performance, especially on slower connections.
Why it matters
- Reduces HTML/CSS/JS payloads and improves perceived speed
- Important for global traffic and slow networks
- Often enabled at CDN/edge level
How to implement
- Enable Brotli (br) on your CDN/server
- Ensure correct Content-Encoding negotiation
- Use long-term caching with fingerprinted asset names
FAQ
Common questions about this term.