Skip to content

docs: the stepped response shows two parts arriving out of order and hydrating one at a time, on the home page too - #117

Merged
ChristopherPHolder merged 1 commit into
mainfrom
docs/restore-streaming-demo
Nov 28, 2026
Merged

ChristopherPHolder merged 1 commit into
mainfrom
docs/restore-streaming-demo

Conversation

@ChristopherPHolder

Copy link
Copy Markdown
Collaborator

Closes #116.

The step-through of one page load came over from the demo's landing page in #96 as the response figure. It had one slow part, so it couldn't show what out of order means, and it only appeared halfway down the Introduction.

What changes

  • The figure (apps/docs/src/app/figures/response-player.ts) now uses the product page from "Why stream out of order". The recommendations sit above the reviews, the reviews take 1 s and the recommendations 3 s. You step through it with Back and Next, or by clicking a step:
    1. Request: a blank page.
    2. Shell: two placeholders, with anchors d0 and d1.
    3. Angular hydrates the shell.
    4. The reviews (d1) arrive first, even though they're lower on the page. Their chunk's p says the recommendations are still on their way.
    5. The reviews hydrate on their own. The recommendations are still a placeholder that Angular leaves alone.
    6. The recommendations (d0) arrive, carry done: true, and the response ends.
    7. The recommendations hydrate.
  • Where it shows up: the docs home page shows it under "What angular-ssr-stream does", where the demo's landing page used to. It stays in the Introduction, "Why stream out of order" links to it, and the walkthrough's pointer to it is updated.

Checked

  • vp check passes and nx build docs prerenders every page.
  • In headless Chrome on the built site, on the home page and the Introduction at 1440, 820, 390 and 320 px: every step shows the expected parts and states, and no page scrolls sideways. On wide screens the caption keeps one height on every step, so stepping moves nothing.
  • axe (WCAG A/AA and best practice) finds nothing in the figure on any of the seven steps once the 0.4 s fade-in of new lines has finished.

…hydrating one at a time, on the home page too

The figure that steps through one page load had a single slow part, so it
could not show what out of order means, and it only sat halfway down the
Introduction.

It now uses the product page from "Why stream out of order": the
recommendations sit above the reviews, which arrive first (1 s, then 3 s).
Seven steps, Back and Next: the shell goes out and hydrates, the reviews'
chunk arrives before the recommendations' and hydrates by itself while the
recommendations are still a placeholder, then the recommendations arrive,
the response ends, and they hydrate. Each part in the drawing names its
block id, and the response shows d1's chunk before d0's, with `p` listing
what is still on its way.

The docs home page shows it under "What angular-ssr-stream does", where the
demo's landing page used to, and "Why stream out of order" links to it.

Closes #116
@ChristopherPHolder
ChristopherPHolder merged commit 27c0e07 into main Nov 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The step-through response figure doesn't show anything out of order, and is easy to miss

1 participant