Accurately testing store speed for a theme you're working on. How?

Accurately testing store speed for a theme you're working on. How?

Preben_Frenning
Shopify Partner
39 0 13

Since the Shopify preview admin bar and other resources always get loaded for previews, are there any other ways to test it?

I'm trying to optimize liquid rendering, and reduce resources required. But I find it very hard when I'm not able to properly run the theme in speed tests and so on. And the liquid chrome extension tester also doesn't work for preview themes.

Reply 1 (1)

oreoorbitz
Shopify Partner
261 31 133

You can capture content_for_header then remove preview generated code using a filter like remove or replace.

Keep in mind that'll break the live preview, so you'll have to access your preview with the link to the preview.

 

Available for pagespeed consulting
https://www.upwork.com/freelancers/~01a19b6cd90193f4f6?viewMode=1&s=1017484851352698949