New Horizon theme making absurd amount of `/cart` requests

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

Hey @Pridentt

Thank you for the report.
This is indeed very much spooky :ghost: and not intended, so we’ll review it and aim to roll out a fix in a future version.

Thank you @Arthur_Demurger, pretty spooky indeed :alien:

Just to confirm, we’ll need to update the theme version right? Do you guys have any type of release schedule for these new versions? Just to know when to be ready to update the theme.