Thursday, June 05, 2025

The Digital Press

All the Bits Fit to Print

Ruby Web Development Artificial Intelligence Urban Planning Astronomy

Stream HTML Out of Order Without JavaScript Using Shadow DOM

Streaming HTML out of order using Shadow DOM without JavaScript

From Hacker News Original Article Hacker News Discussion

A new technique allows streaming HTML content out of order without requiring JavaScript, using Shadow DOM and Declarative Shadow DOM for server-side rendering.

Why it matters: Enables faster, more flexible server-rendered web pages without relying on JavaScript frameworks or client-side scripts.

The big picture: Streaming HTML is regaining popularity alongside full stack frameworks, improving perceived performance and resource loading.

Browser support: Declarative Shadow DOM is supported in Chrome, Safari, and now Firefox, with polyfills available for others.

Commenters say: Users are excited about reduced JavaScript dependency and improved performance, while some discuss browser quirks and implementation complexity.