Does Shopify have text compression (gzip, deflate or brotli) enabled?

Does Shopify have text compression (gzip, deflate or brotli) enabled?

Shopify Partner
6 0 2

I work with quite a few stores and one thing I noticed in common on the Lighthouse report is this opportunity:

Enable text compression: Text-based resources should be served with compression (gzip, deflate or brotli) to minimize total network bytes.


Which leads me to ask, is Shopify coded with this built-in? It seems like an easy task to achieve and doens't make sense to not have it enabled. If not, is there a way to enable it myself?


Replies 4 (4)

Shopify Partner
2 0 0

Hi, have you found an answer? I'm looking into this right now

Shopify Partner
5 0 0

Hi, Did you find a solution ? I have the same problem. 

Shopify Partner
231 18 41

Shopify automatically enables gzip compression for your store's assets. This is done server-side, so you don’t need to manually enable or configure gzip compression in your Shopify settings. It is incredibly common for ecommerce stores to have a low rating. Even the fortune 500's with some of the best devs can't avoid this. It is also just a flat out bad metric to use as it is dependable on the computer you using and not a blanket measurement. The metric I tend to watch out for is the first content paint. No one cares if that one logo in the footer is taking forever to load if they haven't scrolled to it yet. Make sure you are taking advantage of lazy loading and I am sure you already have your image compression done if you are looking at these other compressions. Ecommerce just has a bunch of content and then also CMS solutions like Shopify (especially WordPress/WooCommerce) can be a bit clunky but they sure do save a lot of time. I built out a React ecommerce store using Stripe for the checkout and got the speed to 92 so far. To be honest I can't really tell the difference between the slow speed store and my 92 score store due to lazy loading. I imagine this would be different for those with very slow connections speeds or processors. 

Beaux Barker
Hire me on Fiverr

Shopify Partner
257 31 132

Shopify uses Cloudflare for its asset hosting.
The HTML document seems to always be in Gzip.
The assets are being sent in Brotli

If you see the warning for text compress, its because assets are from a third party and they don't give a flying pig's worth for compression, in which case you should tell your client to complain tot he third party so that more people start caring. 

If you see the warning for shopify hosted assets, then it means something went wrong somewhere wiht the bot the crawls websites for pagespeed, and my little frontend dev brain can't understand that

Available for pagespeed consulting