WAIT: All WooCommerce block stylesheets being added to <head>

Hi guys,

This is my second attempt to post a bug - hopefully this time I’ve found one :slight_smile:

Just working on WooCommerce integration and have noticed that since WooCommerce have moved to a per block stylesheets (WooCommerce Blocks 10.7.0 Release Notes — Develop with WooCommerce) all of the block stylesheets are being are being enqueued even if no blocks are being used on the page. When switching to Twenty Twenty-Three theme the WooCommerce block stylesheets are not enqueued.

To reproduce:

Install WooCommerce v8.0.3 and go through a very basic setup.
Create a simple page in Bricks.
Publish and view on the frontend
Inspect the page and review the WooCommerce enqueued stylesheet - you should see all of them

e.g. CleanShot 2023-09-01 at 16.22.17 · CleanShot Cloud

I hope this helps.

Thanks