Re: [w3ctag/design-reviews] Declarative CSS Modules and Declarative Shadow DOM `adoptedstylesheets` attribute (Issue #1000)

The idea of ensuring `<link>` and `@import` do deduplication is awesome! This should be done, regardless. 👏🏼 👏🏼 👏🏼 

While they are doing so, will it be possible to ensure deduplication of that same content when the subsequent request is made in the form of `import style from './style.css' with { type: 'css' };`? This is likely the secondary request when some styles are handled in HTML and some are handled in JS whether that JS is powering shadow DOM scoped styles or [CSS-in-JS solutions](https://github.com/emotion-js/emotion/issues/2501).

As part of your breakout, where there any suggestions as to how leveraging these existing APIs in this way could prevent additional network requests at large, or more directly contend with the proposal's approach to inlining the CSS in the initial HTML response?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1000#issuecomment-2433509997
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1000/2433509997@github.com>

Received on Wednesday, 23 October 2024 21:37:21 UTC