News for hackers. Stuff that matters.
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.
Re:Shoelace: A library of web components by Inviz on Thursday January 11, 2024 @07:41AM (#38951451)
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