> <i>Typically, Brotli is better than gzip, and gzip is better than nothing. gzip is so cheap everyone enables it by default, but Brotli is way slower.</i><p>Note that <i>way slower</i> applies to speed of compression, not decompression. So Brotli is a good bet if you can precompress.<p>> <i>Annoyingly, I host my blog on GitHub pages, which doesn’t support Brotli.</i><p>If your users all use modern browsers and you host static pages through a service like Cloudflare or CloudFront that supports custom HTTP headers, you can implement your own Brotli support by precompressing the static files with Brotli and adding a <i>Content-Encoding: br</i> HTTP header. This is kind of cheating because you are ignoring proper content negotiation with <i>Accept-Encoding</i>, but I’ve done it successfully for sites with targeted user bases.