Shopify HTML compression and the Core Web Vitals
Brotli (br), Gzip, Zstandard (zstd), or uncompressed HTML: how document compression affects Time to First Byte (304 ms on Brotli vs 375 ms on Gzip) and Largest Contentful Paint.
3.8% of Shopify sites have no HTML compression. Of the 96.2% that do, 98% use Brotli, and 97% of those sites have a good LCP, against 97% of all Shopify sites.
LCP pass rate
Sites with Brotli HTML compression have a good LCP most often: 97%, against 97% of all Shopify sites.
HTML compression usage
96.2% of Shopify sites use HTML compression, and 98% of those use Brotli.
Where HTML compression shows up in the four LCP phases
Across the four LCP sub-parts in Chrome's field data, the largest gap between Brotli and no sits in element render delay: 303 ms median for Brotli against 338 ms for no. Overall median field LCP is 1.3s for Brotli (TTFB 304 ms, load delay 628 ms, load duration 153 ms, render delay 303 ms) versus 1.3s for no.
HTML compression per framework
Vue sets the HTML compression to Brotli on 95% of its sites, and 97% of Vue sites have a good LCP, against 97% of all sites.
HTML compression or the framework
Does the framework explain the HTML compression difference?
On jQuery, 95% of sites with Brotli HTML compression have a good LCP, against 98% of jQuery sites with no. Within jQuery, sites with Brotli and no have a good LCP about equally often.
Why Brotli HTML compression speeds up resource discovery
Brotli uses a built-in dictionary of common HTML, CSS, and JavaScript tokens, shrinking HTML documents 15 to 20 percent more than Gzip at comparable CPU cost. Because the browser's preload scanner parses the HTML stream chunk by chunk as it arrives, a smaller compressed document delivers the <head> and hero <img> markup in fewer TCP or QUIC packets. Sites serving Brotli HTML record a 304 ms median TTFB and 1.3s median LCP, compared with 375 ms TTFB and 1.8s LCP on Gzip.
Understanding HTML document compression
Enable Brotli (br) compression on your HTML responses and keep Gzip as a fallback. Across all audited sites, 94.7% serve Brotli-compressed HTML and reach 97% good LCP (1.3s median), beating Gzip (0.8% of sites, 88% good LCP) and uncompressed HTML (3.8% of sites, 99% good LCP). For dynamic HTML generated on the fly, Brotli quality level 4 or 5 compresses faster AND smaller than Gzip level 6 without adding server CPU delay.
By Arjen Karel · 8,246 crawled Shopify sites (3,818 with desktop Chrome field data, October 2026). How we measured.