Optimising Initial Load Time #54
ShobhanSrivastava
started this conversation in
Ideas
Replies: 1 comment
-
Also, yes, a good way to deal with 2.1,2.3 and 2.4 is to loop a GQL query and update webhooks, 2.2 where your webhooks are removed from Shopify's end will lead to a potential delisting from the app store and loosing ranks. Even having devs write a GQL query to bulk update stores' webhook endpoints is apparently a huge pain. I hate the sub 13 second installation time too, but the boilerplate serves as a starting point, not a defacto |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @kinngh, you've been a great support lately and this template has helped me a lot.
This time I've got a suggestion in order to optimise for the initial load time. In my app, I have been getting very high initial loading time (about 5-6 seconds). I can understand it could be due to multiple factors.
While understanding the data flow in the auth process, I saw that in the
isInitialLoad
middleware, we are registering the webhooks for the store every time where we await thewebhookRegisterResponse
which takes some time.In my opinion, we can move the webhook registration part to the
freshInstall
function as the webhook registration is a one time thing and we can omit the registration every time the page is loaded.Let me know if I am missing something here as I am relatively new to Shopify App Development domain. But if you feel that this change will optimise the initial load time, I'd love to contribute to this template by making this change and creating a PR.
Thanks
Shobhan Srivastava
Beta Was this translation helpful? Give feedback.
All reactions