After each quantity change in cart drawer, the Horizon theme makes one /cart request for each product card present in the page, resulting in a huge amount of requests. For example if there are 16 product cards in the page, it sends 16 /cart request after each quantity change.
I was wondering if this is something intentional or not, because this eventually causes the AJAX API to start responding slower to all requests, most likely due to rate limiting.
By simply increasing the quantity one by one, the cart requests start becoming slower and slower:
I should also mention that the theme was just installed from scratch. It doesn’t have any app embeds activated, and the code hasn’t been edited either, so this could only be caused by the theme itself.
Reproduction steps
- Install the latest Horizon theme in your store
- Add any product to the cart
- Enter a page where there are product cards present
- Change the quantity of the product in the cart drawer
In result: if you check the Network tab in your browser, you can see multiple /cart requests are generated after the change.
What type of topic is this
Bug report
