Shopify Engineering·· 2020-10-21AI 评分22
如何用 Shopify Theme Inspector 做深度 Liquid 渲染分析
How to Do an In-depth Liquid Render Analysis with Theme Inspector
AI 导读
Shopify 工程团队讲解如何用 Chrome 版 Shopify Theme Inspector 扩展生成火焰图,定位 Liquid 代码的渲染瓶颈。示例中,10 件商品的分页集合渲染耗时 13 ms,循环内访问商品属性后升至 162 ms,商品增至 50 件时达 800 ms;两层嵌套循环为 55 ms,三层为 72 ms。
来源:Shopify Engineering · shopify.engineering