declarative partial updates experiments

Experiments with the Declarative Partial Updates API and the Navigation API. As little JS as possible. Chrome 148+ behind chrome://flags/#enable-experimental-web-platform-features.

  1. 01. Basic marker placeholder

    <?marker> + <template for> declarative replacement, zero JS.

  2. 02. Streaming fetch into element

    streamHTML() piping a chunked fetch into the DOM.

  3. 03. HTMX emulation

    Tiny JS that turns data-target attributes into streamed partial updates.

  4. 04. Navigation API + DPU

    SPA routing via navigation.intercept(), content via streamHTML.

  5. 05. Islands architecture

    Independent islands, each fetched in parallel via DPU.

  6. 06. Server-side rendered

    Server streams the whole document with out-of-order <?marker> fills.

  7. 07. Streaming clock

    Long-lived response that re-flushes a <template for> every second. Zero JS.

  8. 08. Skeleton card

    Placeholder shapes that match the final layout — no layout shift on fill.

references