How To Server-Side Render A Web Component

Danny Moerkerke
ITNEXT
Published in
6 min readApr 28, 2023

--

Blazing fast lazy-loaded Web Components

Photo by Xavi Cabrera on Unsplash

Why server-sider rendering?

Server-side rendering means the server sends a complete HTML document to the browser which then renders it. This is in contrast to client-side rendering where a partial HTML page is sent to the browser and then JavaScript renders the rest in the browser.

--

--

I write about what the modern web is capable of, Web Components and PWA, creator of https://whatpwacando.today