We are developing a Shopify store with Hydrogen framework. In our store when user clicks on Add to cart button, we are submitting the values to /cart post method and after request fulfilled we are showing that added product in the customized cart slider. During this process we are observing that when we are submitting a form to /cart via post method, it is taking much time to complete below requests
- cart.data
- root.data
on an average I am getting delay of 1.75 seconds to 3 seconds. After we get a response, we are showing the product information on the customized cart slider which take few more milliseconds upto a second. Due to this delay the application looks like very slow.
Is there any possible way to avoid these delays and improve the site performance.