nayaread
HomeFavouritesTopicsSources
HomeFavouritesTopicsSources
NayaRead links to original engineering blogs. All copyright belongs to the respective authors.
Shopify Engineering·Oct 20, 2020·9 min read40

How to Do an In-depth Liquid Render Analysis with Theme Inspector - Shopify

Shopify’s Online Store provides greater flexibility to build themes representing the brand of a merchant’s online store. However, like with any programming language, one often writes code without being aware of all the performance impact it creates. Whether it be performance impact on Shopify’s servers or observable performance impact on the browser, ultimately, it’s the customers that experience the slowness. The speed of server-side rendering is one of the most important performance timings to optimize for. That’s because customers wait on a blank screen until server-side rendering completes. Even though we’re working hard to make server-side rendering as fast as possible, bottlenecks may originate from the Liquid source itself. In this article, I’ll look at:   how to interpret flame graphs generated by the Shopify Theme Inspector what kind of flame graphs generate from unoptimized Liquid code patterns tips for spotting and avoiding these performance issues. Install the Shopify Theme Inspector With a Google Chrome browser, install the Shopify Theme Inspector extension. Follow this article on Debug Liquid Render Performance with Shopify Theme Inspector for Chrome for how to start with the extension and get to a point where you can produce a flame graph on your store. A flame graph example The flame graph produced by this tool is a data representation of the code path and the time it took to execute. With this tool, as a developer, you can find out how long a piece of code took to render. Start with Clean Code We often forget what a clean implementation looks like, and this is often how we, Shopify, envision this piece of liquid code will be used—it’s often not the reality as developers will find their own ways to achieve their goals. As time passes, code becomes complicated. We need to go back to the clean implementation to understand what makes it take the time to render. The simple code above creates a flame graph that looks like this image below: Flame graph for a 10 item paginated

Read original on shopify.engineering

Score breakdown

  • Technical depth50
  • Practical value45
  • Originality60
  • Writing quality100
  • Source reputation0
  • Recency0
  • External engagement0
  • On-site engagement0

NayaRead shows a summary and links to the original article. The full article is hosted on shopify.engineering.

More like this

The Cloudflare Blog

Introducing on-demand CPU and memory profiling with flamegraphs for Workers and Durable Objects

Dominik Picheta·4 days ago·8 min read
Etsy — Code as Craft

Improving performance by prefetching product pages from Etsy Search

David Weinzimmer·Oct 29, 2025·11 min read
Yelp Engineering

Server Side Rendering at Scale

Feb 23, 2022·8 min read
Shopify Engineering

Simplify, Batch, and Cache: How We Optimized Server-side Storefront Rendering - Shopify

Dec 10, 2020·14 min read