HTML streaming as data format

Chrome 148 ships streaming HTML APIs to replace JSON for partial DOM updates Chrome for Developers
TL;DW
  • Declarative partial updates in Chrome 148 enable HTML to update without JavaScript—clock refreshes every second with zero JS code.
  • Patch large DOM structures like menus into the page later, letting critical content render first for better performance.
  • New streamHTML and streamHTMLUnsafe APIs let developers stream fetched HTML directly into the DOM without JSON parsing overhead.
  • Island architecture pattern now easier for vanilla JavaScript developers without requiring heavy frameworks.
  • HTML can replace JSON as the interchange format for streaming dynamic content to browsers.
  • Chrome 148's partial updates represent one of the biggest HTML changes in a decade for UI performance wins.

Two new APIs — streamHTML and streamHTMLUnsafe — let servers push partial HTML directly into the DOM without JavaScript hydration. The demo shows a live clock updating every second via server-sent HTML, enabling island-architecture patterns where critical content renders first and non-essential sections patch in later.