News for hackers. Stuff that matters.
Re:Web Components could replace frontend frameworks? by westbrookjo on Thursday April 11, 2019 @11:37PM (#19641742)
You can server side render a `video` element just the same way you would a `custom-element`. We've been doing it for years and there's no reason to think anything about that has changed. If you're looking to deep SSR which is arguable as far as benefit, check out approaches like https://github.com/ionic-team/stencil-ssr-starter
Re:Web Components could replace frontend frameworks? by georgecalm on Thursday April 11, 2019 @11:58PM (#19641857)
I think the difference is that the browser already contains the shadow dom needed to render the video tag. But for a custom tag it would need to fetch, parse and execute your component code before it can begin to render.
Re:Web Components could replace frontend frameworks? by westbrookjo on Saturday April 13, 2019 @06:29PM (#19656149)
That's an interesting read. I'm thinking on whether the real question is what is the declarative difference between the video tag, which by normal application lets everyone feel find about that content hidden by the shadow DOM vs the APIs we're developing for our custom elements. There seems to be an important piece of learning, not just for SSR, but for custom element development in general, that I think we can build off of.