Shopify reports a Shopify-Complexity-Score header reflecting how much Liquid work a page requires to render. A high score (200+) means slow cold renders and a heavier cache-warm cost.
Common causes
- Deeply nested loops — looping over all collections, then all products, then all variants.
- Unbounded loops without
limit:orpaginate. - Expensive filters (
sort,map,where) applied to large arrays on every render.
How to fix it
- Add
limit:to collection and blog loops; paginate long lists. - Precompute values into metafields instead of deriving them in Liquid at render time.
- Replace nested catalogue loops with the Search & Discovery / Storefront API where possible.