Shopify Add to cart extreamly slow in hydrogen implementation

Topic summary

A developer is experiencing significant performance issues with add-to-cart functionality in a Hydrogen-based Shopify store. When submitting form data to the /cart POST endpoint, two requests (cart.data and root.data) are taking 1.75-3 seconds to complete, with additional rendering delays of up to 1 second for the custom cart slider.

Total delay: ~2-4 seconds per add-to-cart action

Current implementation:

  • Form submission to /cart via POST method
  • Custom cart slider displays after response
  • Delays occur during data fetching phase

The developer is seeking optimization strategies to reduce these delays and improve overall site performance. One respondent suggested posting in the Shopify developer community for more technical assistance, while another mentioned resolving similar issues with external help but provided no specific solution details.

Status: Unresolved, no concrete optimization techniques provided yet.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Hi All,

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.

Hi @kanagavela

I reckon you might get a better response in the dev community so worth posting there if you haven’t already!
https://community.shopify.dev/latest

Hope that helps,
Jake

1 Like

Hello @kanagavela

I really understand you, because i have encounter it before it delays and it doe’s not improve site performance, but my shopify marketing agency helped me out. You can also try them out.