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
This is fairly wasteful to include the same content twice. Especially if disableSyntheticShadowSupport is set in the compiler, then the strings are always the same (at least for shadow DOM – light DOM is trickier because of :host and useActualHostSelector).
Ideally there should be some way to avoid this duplication entirely, i.e. to only put the stylesheet into the HTML, not the JS.
Right now, the way SSR works is that
renderComponent
renders the component stylesheets as<style>
s:And then this stylesheet is duplicated inside of the JS bundle as well:
This is fairly wasteful to include the same content twice. Especially if
disableSyntheticShadowSupport
is set in the compiler, then the strings are always the same (at least for shadow DOM – light DOM is trickier because of:host
anduseActualHostSelector
).Ideally there should be some way to avoid this duplication entirely, i.e. to only put the stylesheet into the HTML, not the JS.
Related: #2851
The text was updated successfully, but these errors were encountered: