- From: Justin Fagnani <notifications@github.com>
- Date: Thu, 27 Jun 2024 15:44:34 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 27 June 2024 22:44:38 UTC
It's still non-optimal and breaks semantics. Constructible stylesheets actually share a single stylesheet instance, something that doesn't happen with `<style>` or `<link>`. There is still a performance hit from so many `<style>` tags even with deduplication - this was part of the motivation for constructible stylesheets in the first place. The HTML parser still has to consume the bytes of each tag and check the cache. There's still an extra element in the tree. And compression doesn't completely make up for the extra bytes. `<link>` tags would be pretty cumbersome to implement in an SSR system because you have to invent a URL scheme for them. It would be ok with CSS modules, but won't work well for constructible stylesheets created from inline CSS. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/939#issuecomment-2195786156 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/939/2195786156@github.com>
Received on Thursday, 27 June 2024 22:44:38 UTC