Lazy load the cart block

Created on 26 March 2025, about 1 month ago

Describe your bug or feature request.

When the cart block is added to a region(typically the header), it introduces cache context based on the user, session, and cart.

This means every page that displays the cart block will become stale whenever the cart is modified, even though nothing actually changed on the page.

Similar to status messages and the add to cart form, we should lazy load the cart block. This would avoid unnecessary cache purging of pages, which is more scalable and performant.

MR to follow.

📌 Task
Status

Active

Version

3.0

Component

Cart

Created by

🇺🇸United States TomTech

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024