Shopify HTML compression and the Core Web Vitals
Brotli (br), Gzip, Zstandard (zstd), or uncompressed HTML: how document compression affects Time to First Byte (389 ms on Brotli vs 464 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 96% of those sites have a good LCP, against 96% of all Shopify sites.
LCP pass rate
Sites with Brotli HTML compression have a good LCP most often: 96%, against 96% 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: 294 ms median for Brotli against 349 ms for no. Overall median field LCP is 1.3s for Brotli (TTFB 389 ms, load delay 589 ms, load duration 209 ms, render delay 294 ms) versus 1.3s for no.
HTML compression per framework
Vue sets the HTML compression to Brotli on 95% of its sites, and 95% of Vue sites have a good LCP, against 96% of all sites.
HTML compression or the framework
Does the framework explain the HTML compression difference?
On jQuery, 94% of sites with Brotli HTML compression have a good LCP, against 92% 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 389 ms median TTFB and 1.3s median LCP, compared with 464 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 96% good LCP (1.3s median), beating Gzip (0.8% of sites, 84% good LCP) and uncompressed HTML (3.8% of sites, 95% 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 (8,062 with all devices Chrome field data, October 2026). How we measured.