Re:Shoelace: A library of web components
by mattlondon on Thursday January 11, 2024 @01:35AM
(#38948584)
The CSS doesn't need to be in the JS. You can trivially just fetch the static CSS file in JS then have the content adopted.
[ Parent
| on HN ]
Yeah but flash of unstyled content? Plus you need to somehow adopt only related parts? Selectors wouldnt match easily necessarily, e.g. decision to adopt :hover selector must be made somehow