You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Styles specified this way are also highly optimized: if the same stylesheet is present in multiple Declarative Shadow Roots, it is only loaded and parsed once. The browser uses a single backing CSSStyleSheet that is shared by all of the shadow roots, eliminating duplicate memory overhead.
it would be nice for large CSS blocks repeating across components like
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Wondering if we could make use of a shared data url stylesheet that could be shared across multiple components.
https://stackoverflow.com/questions/23807954/is-it-valid-to-use-datatext-css
Supposedly browsers efficiently use the same stylesheet across components.
https://developer.chrome.com/en/articles/declarative-shadow-dom/#server-rendering-with-style
it would be nice for large CSS blocks repeating across components like
Beta Was this translation helpful? Give feedback.
All reactions