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
Every time a custom element with styling is created it creates a <style> tag what also adds a dom element.
Custom elements already adds more dom elements so allowing to remove one that is mostly there always would realy make a big difference in dom node creation and also performance.
if any more information needed i can help :)
Describe the proposed solution
Solution is like LIT implementing usage of Constructable Stylesheets.
Constructable Stylesheets are implementend now in every browser.
svelte beeing all about performance this would be a great step in the right direction for custom element creation with svelte
Describe the problem
Every time a custom element with styling is created it creates a <style> tag what also adds a dom element.
Custom elements already adds more dom elements so allowing to remove one that is mostly there always would realy make a big difference in dom node creation and also performance.
if any more information needed i can help :)
Describe the proposed solution
Solution is like LIT implementing usage of Constructable Stylesheets.
Constructable Stylesheets are implementend now in every browser.
svelte beeing all about performance this would be a great step in the right direction for custom element creation with svelte
preventing an excessive DOM size: https://developer.chrome.com/docs/lighthouse/performance/dom-size/
Information on Constructable Stylesheets: https://web.dev/constructable-stylesheets/ and https://github.com/WICG/construct-stylesheets/blob/main/explainer.md
Alternatives considered
not really
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: