Thanks for the amazing insight. I see and understand the points you made.
I will get in touch with the specific app support and see if they have any suggestions.
Do you think sources for the scripts like this <link rel="dns-prefetch" href="//s3.amazonaws.com"> help?
Or should i just copy the code in the scripts and host them locally?
The main problem as you would have noticed is that the issue is not consistent and hence debugging and fixing it really hard.
I also have the "same" issue. The only app installed on my shop is Printful and using a simple theme - Brooklyn.
Sometimes TTFB for a page can reach 10-20 seconds, and once that page is loaded, it becomes snappy. And whenever people troubleshoot this issue, pages also become snappy, which makes it very difficult to convince that there is actually a problem, and I think the problem is at Shopify's end.
Any thought on what could causing this kind of issue?
What's happening is that your page is temporarily cached on Shopify's servers after you view it. This is why it gets snappier, and why other people will see it so (they'll be looking at a cached version too).
The cache will expire after a short while - if you update the theme or change product/inventory data that will trigger it to happen right away (I detailed what happens here: https://community.shopify.com/c/Technical-Q-A/Understanding-Shopify-Cache/td-p/645596).
Regardless of caching, 10-20 seconds is a long time and it's likely that you've got some rogue code slowing the page down. Are these collection pages? Can you share a link and I'll take a look and see what I can infer by looking at the front end.
Hello @Chris_Marshall1 ,
Thank you so much for looking at this, appreciate it!
I also think that it is likely a server caching issue, and is there a way to extend the expiration time of the server cache, or it is controlled by Shopify (just curious)?
And here is the link to our shop:
It is a simple setup using the theme Brooklyn, and we only use one app - Printful.
I see - it's very slow. And no, AFAIK you can't dictate the expiration time.
Looking at the page source there seems to be some kind of huge loop - pretty sure that's the culprit. I can't tell without seeing the code but it looks like it's related to an app from Bold? Not sure how that's on there if you've only got that other app installed.
If you feel confident, this tool: https://chrome.google.com/webstore/detail/shopify-theme-inspector-f/fndnankcflemoafdeboboehphmiijkgp... should help you identify the offending file...
Hi @Chris_Marshall1 ,
Thank you very very very much! I think that was it, it was the "bold-common.liquid" that causing this crazy issue. Once we commented that out from the theme.liquid file, pages no longer took that long to load.
The theme we are using is from another team, which I suspected that someone could have installed the app - Bold before, and that bold-common thing got generated and injected to the theme file.
Thank you again for your help! Really appreciate it! :)
|53 seconds ago|