Shopify Add to cart extreamly slow in hydrogen implementation

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

  1. cart.data
  2. 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.

You can improve your add-to-cart speed in Hydrogen by implementing the optimistic cart feature. This lets the cart UI update instantly when a user adds a product, without waiting for the server response. The actual cart update happens in the background, so customers see immediate feedback and the experience feels much snappier.