Cold start add-on
Gadget team has enabled that add-on which fixes cold star for me a while ago, and my app had pretty good LCP scores at first. But since around June 29th, they’ve gotten bad again. Even though I pay for this extra add on… Do you know what might be causing this? I thought this add-on would be helpful - and it was for a while but now I’m just paying for something that isn’t working. Any idea what might be going on? :/ My app is https://kedra-checkout-rules.gadget.app/
3 Replies
Hello,
Could you please share more information? What kind of scores were you getting before? What are you getting now? Have you made any additions or changes to your code? Have you done some profiling to see where the LCP issues are?
I just saw that you're fetching the shop in multiple different child routes when you can simply make a request in the parent and pass it down with outlet context: https://remix.run/docs/en/main/hooks/use-outlet-context

Ultimately @emabaran the cold start package is there to help, but LCP is tricky and dependent on many things including where the user is, their intenet connection, but also your code and what it's doing when they load the page. So while the package will help alleviate "cold start infrastructure" delays which contribute to high LCP scores, they are not the only factor and cannot guarantee success on their own.
The "cold start package" is effectively us keeping one server always warm and running for your application, even if there have not been any requests for some time. Ultimately, it addresses the many ms of time it takes to start the server up before serving your request. That the package does what it promise is a guarantee, because we simply place a always-on server for your app. So once you have that on, you have to look elsewhere for more culprits.
What Antoine calls out looks like a smokin gun to me.
-----
One other add-on that we have that we have not advertise is "smart CDN". This will help a lot if you believe your visitors are primarily from countries far from the USA. I believe it's 20$/mo, and what it will do is place all of your assets in every single Cloudflare region in the world (as opposed to just in the US) so that they can be loaded much much much faster when users are visiting from countries that on other continents. Again, this pacakge would specifically address this issue. IT's new, so if you want, we can turn it on for you for a month for free cause we want some feedback as well. After that, if you want to keep it, it'd be 20$/mo.