Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Shopify CLI theme dev preview extremely slow

Shopify CLI theme dev preview extremely slow

Liddell
Excursionist
14 0 4

My Shopify CLI preview (via http://127.0.0.1:9292/) loads extremely slow. It takes about 15 seconds to load a page. Changes within a page do reload quite fast but if I navigate to a different page or fully reload the current page, it takes a long time.

 

If I navigate the preview via the share preview link that is generated with "shopify theme dev", it's much faster.

 

I just switched from CLI 2.x to 3.x and followed the official guide on shopify.dev. The old CLI is uninstalled and everything should fulfill the requirements.

 

Are there specific versions of node.js or ruby or a combination of specific versions that are known to cause such a slowdown? If not, any other ideas?

 

I'm on Windows 10, Shopify CLI 3.64.0, Node 20.15.1, Ruby 3.0.3p157

Replies 5 (5)

SomeUsernameHe
Shopify Partner
517 57 110

Was the old CLI working much better?

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee
Liddell
Excursionist
14 0 4

Certainly. Even the on page refresh when changing CSS was a tad quicker. And as mentioned, this is only the case for the preview via 127.0.0.1:9292. Via the sharable preview link page loads are much faster. Are these loading times normal for 3.x?  

miguel-angel
Shopify Partner
34 3 8

Did you find a solution? This is happening to me too, tried changing ruby version and everything, still very slow

Like & set Accepted Solution if I helped | Donate

.

Miguel Ángel

.

Freelance Shopify Developer
Reach out if you need any Custom Features in your site.
Liddell
Excursionist
14 0 4
No, i couldn't find a solution. It's a shame but for now I use the preview of the customizer and manually refresh the page...
asmundsol
Shopify Partner
1 0 0

I have the same problem in Safari on Mac, but Chrome works better. Still very slow updates of css though, DOM updates are faster.