๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Web Development Intermediate

What is Brotli Compression?

A modern compression algorithm developed by Google that achieves better compression ratios than Gzip for web content delivery.

Brotli (br) compresses web assets 15-25% better than Gzip at comparable speed. It uses a combination of LZ77, Huffman coding, and a built-in dictionary of common web content patterns (HTML tags, CSS properties, JavaScript keywords). Most modern browsers support Brotli via the Accept-Encoding: br header. Web servers like Nginx (ngx_brotli module), Apache (mod_brotli), and CDNs (Cloudflare, Fastly) support Brotli compression. Brotli levels 1-4 are suitable for dynamic compression, while levels 5-11 are for static pre-compression. The built-in dictionary gives Brotli a significant advantage for small files where Gzip struggles to find patterns.

Related Terms

WebSocket
A communication protocol that enables full-duplex, real-time data exchange between a browser and server over a single connection.
Web Accessibility (a11y)
The practice of designing websites that can be used by people with disabilities, following WCAG guidelines.
Static Site Generator (SSG)
A tool that generates a complete static HTML website from templates and content at build time, requiring no server-side processing.
DOM (Document Object Model)
A programming interface for HTML documents that represents the page structure as a tree of objects that can be manipulated with JavaScript.
Web Font Optimization
Techniques for loading custom fonts efficiently to minimize their impact on page load performance and visual stability.
API Rate Limiting
A strategy for limiting the number of API requests a client can make within a specified time window to protect server resources.
View All Web Development Terms โ†’