News for hackers. Stuff that matters.
Re:On yak shaving and <md-block>, a new HTML element f... by ravenstine on Friday November 26, 2021 @01:15PM (#29352564)
Just gonna say it as I always do; I love web components.

I'm curious how this would work with SSR. I noticed that nothing appears in the spaces where these elements are used when I have NoScript blocking scripts on the page. Obviously this would prevent execution of web components, but are these written in such a way that it would be practical to prerender the content and the client-side code to replace or rehydrate them?

Re:On yak shaving and <md-block>, a new HTML element f... by lenkite on Saturday November 27, 2021 @05:24AM (#29359073)
Web Components need JS - which makes them a no-go for many use-cases. There should have been a way to permit plain web-components with just CSS+HTML and no JS
Re:On yak shaving and <md-block>, a new HTML element f... by dmitriid on Friday November 26, 2021 @06:35PM (#29355432)
> I'm curious how this would work with SSR.

Web Components can't be SSR'ed. (The libs that claim to do so, cheat).