proomt

Search

Search posts, papers, and topics

All posts

InfoQBruno Couriol2 min readintermediate

Out-of-Order HTML Streaming Moves from JS Frameworks into the Browser

Summary

The WICG declarative partial updates proposal adds `<template for>` and processing‑instruction markers to enable out‑of‑order HTML streaming directly in the browser. Chrome 150 ships the markup support; streaming DOM APIs (e.g., `streamHTMLUnsafe`) and `Response.textStream()` let servers push fragments that replace placeholders without blocking the rest of the page. Security is enforced by limiti…

  • New `<template for>` attribute pairs with `<?marker?>`/`<?start?>…` processing instructions to define insertion points for streamed fragments.
  • Browser‑side streaming APIs (`streamHTML`, `streamAppendHTML`, etc.) accept a `WritableStream` and can be used with `Response.textStream()` for incremental rendering.
  • Security model: templates may only replace markers within their direct parent element, except when placed under `<body>` which grants document‑wide scope.
  • Chrome/Edge 150+ already implement the markup; Chrome 151 adds `textStream()`. Safari and Firefox have signaled intent to support.

Out‑of‑order streaming cuts perceived latency by letting interactive parts of a page render before slow components finish, improving user experience without requiring framework‑specific runtime code. Native support also centralizes security checks and reduces JavaScript payloads.

6/10

Related reading

  1. High-speed Release Trains – These Weeks in Firefox: Issue 209

    Firefox 155 shipped via a new 2‑week release train; the week’s highlights include a WebExtensions theme API addition, multi‑context address bar in Nightly, DevTools stylesheet editing in the JS debugger, and extensive New Tab page UI/telemetry work (stocks widget, privacy widget, policy‑locked settings). The post also calls out many volunteer contributors and a handful of infrastructure tweaks (T…

    Mozilla Automation Teammozilla.org9 min
  2. TanStack Charts Introduced with a Framework Agnostic Grammar of Graphics for TypeScript

    TanStack Charts α is a framework‑agnostic, TypeScript‑first charting library that implements a grammar‑of‑graphics API (marks, scales, channels, transforms, layers). It ships as a single npm package with adapters for React, Preact, Vue, Solid, Svelte, Angular, Lit, and vanilla DOM, and can run on server or client. The runtime is headless; type inference stays tied to the source row, so each mark…

    InfoQinfoq.com2 minrelease
  3. Fixing Server Component Bundle Leaks in Next.js with AST Linting

    Server‑only code can silently inflate client bundles in Next.js 15+ apps. The article shows how to spot leaks with @next/bundle-analyzer, prevent them by removing shared barrel files or adding the `server-only` guard, and enforce a deny‑list of server modules via a custom ESLint rule that scans the AST of files with a `'use client'` directive. The rule is wired into a CI bundle‑budget check using…

    SitePointsitepoint.com14 min