WooCommerce 10.4: a faster mini cart and a lazier REST API

I recently worked with a client running a big WooCommerce store, thousands of SKUs and a busy checkout. Adding anything to the bag came with a 1.5-second lag. They had already tried three different “speed booster” plugins, which made it worse, because they were throwing jQuery at something that needed an architectural change. That is the kind of site the WooCommerce 10.4 update actually helps.

Years ago I made the classic version of this mistake. I tried to fix a sluggish mini-cart by overriding the added_to_cart fragments with my own Ajax handler. I thought that was clever. What I built was a race condition that occasionally showed the wrong cart totals during high-volume sales, and it took days to track down. You should not be writing custom state management for carts anymore. In 10.4 the Interactivity API Mini Cart is the default and handles that for you.

What the Interactivity API changes in WooCommerce 10.4

The main change in the WooCommerce 10.4 update is that the Interactivity API-powered Mini Cart has gone from experimental to stable. That moves the mini cart off the heavy React implementation and onto a lighter architecture closer to WordPress itself. In practice: smaller JS bundles and a frontend that responds without dragging an older framework along with it.

If you run a headless store, or you watch your Time to First Byte, the other useful change is lazy-loading for the wc-admin and wc-analytics REST API namespaces. Those controllers used to load on every REST request, even when you were only asking for a product list. Loading them on demand is worth 30 to 60ms of response time. That sounds small until you multiply it by the traffic on a busy store. The developer advisory has the technical detail.

It is the same kind of fix I wrote about when working out why your WooCommerce admin might be slow. Every class you load and never use is a tax on the server.

Using the new API endpoints

The addition I have already used twice is the endpoint that returns shipping zone methods by instance ID. Before this you pulled the whole zone and filtered it yourself. Now it is a plain GET request. Here is one way to wrap it in a helper.

function bbioon_get_shipping_method_details( $instance_id ) {
    $request = new WP_REST_Request( 'GET', '/wc/v3/shipping/zones/0/methods/' . $instance_id );
    $response = rest_do_request( $request );

    if ( is_wp_error( $response ) ) {
        return false;
    }

    return $response->get_data();
}

Cleaner than the legacy workarounds. The API keeps getting more granular, which is part of why I wrote about not breaking your store during updates. Read the source documentation before you refactor a custom integration against it.

HPOS caching and block flexibility

High-Performance Order Storage (HPOS) caching has also left experimental status. It is still off by default, but it is worth turning on if your order volume is high, since it keeps frequently accessed order data in memory instead of hitting the database for it. The WordPress Interactivity API documentation covers the architecture behind how the frontend and backend now talk to each other.

The Featured Product and Category blocks accept inner blocks now, so you are no longer locked into a fixed layout on landing pages. Custom headings, buttons and other blocks can go inside those featured areas. Small change, but it replaces a pile of custom CSS.

WooCommerce keeps getting more complicated, and also faster, if you know which of these new pieces to use. If you are tired of debugging someone else’s mess and you just want the site to perform, drop me a line. I have probably solved your exact headache before.

The short version: do not update and pray. Test the new Mini Cart against your theme, turn on HPOS caching in staging before production, and take the REST API gains for free.

author avatar
Ahmad Wael
I'm a WordPress and WooCommerce developer with 15+ years of experience building custom e-commerce solutions and plugins. I specialize in PHP development, following WordPress coding standards to deliver clean, maintainable code. Currently, I'm exploring AI and e-commerce by building multi-agent systems and SaaS products that integrate technologies like Google Gemini API with WordPress platforms, approaching every project with a commitment to performance, security, and exceptional user experience.