GenerateBlocks - Can someone explain how CSS is generated?

Alright, I’m trying to learn as much as I can about how GenerateBlocks / GeneratePress work so I can make sure I’m creating nice lean websites.

I can see that CSS for Global Styles is loaded on every page, which is fine… but when you tweak individual blocks on individual pages, is that generated CSS for that specific element also added to the site-wide stylesheet? Or are those styles generated for that page only?

Hi @erc,

They are generated for the page only.

1 Like