FROM CACHE - en_header

Hi how do I defer shopify CDN scripts

16 0 2

Hi Shopify dev community I'm developing a custom theme for my store but at 0.9 second FCP its already very slow :[

I would get full paint at 0.4 seconds (i like) but there's some render blocking JS slowing down my site that isn't local to my theme folder. Its some scripts served from shopify CDN but I do not know what they do other then that fact that their (probably) served with any shopify hosted store.




Frankly I find hard to believe that shopify HAS to load 5 different scripts before it can render, so I must defer them. 

How do i do?


Thanks Shopify dev community

Replies 5 (5)
16 0 2
64 1 5


Whereas I totally agree with you, Shopify imposes us at least 500ms of first load JavaScript now (trekkie.js).

And you can't defer most Js Scripts now anymore, because all scripts are async loaded (but tricorder & trekkie put 500 ms of Javascript evaluation in all your themes).

This is beginning to be too much, way to much of overhead.

Shopify Partner
26 1 6

I have this problem too

57 6 22

Agree, it would be nice with a guide on how to resolve this for speed optimization. Trekkie etc may be relevant for convenience, but they often load before the FCP/LCP, causing speed issues.

Shopify Partner
1 0 0

Did you ever find a solution to this?