News for hackers. Stuff that matters.
Re:Declarative Shadow DOM by tehbeard on Friday October 02, 2020 @02:12AM (#24659471)
So it provides a way to reuse CSS scoped for web components without needing JS?

Neat, I guess, but that's only really useful for basic layout components? Anything more complicated needs JS for behaviour/interactive functionality?

I guess it speeds up first paint, but again it feels like you'd send up with components on the page that look functional, but aren't wired up to do what they are supposed to until the JS comes down and adds event listeners etc.

Re:Declarative Shadow DOM by rado on Friday October 02, 2020 @02:53AM (#24659727)
Yes. Many components don't need JS at all, or use it as enhancement only.