Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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?
Hi, have you found an answer? I'm looking into this right now
Hi, Did you find a solution ? I have the same problem.
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.
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
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025