What you'll learn: By the end of this case study you will be able to design the list side of an endless feed: state the requirements and the cost of "just keep appending", split the design into a data window, a DOM window and a position memory, bound the DOM by keeping only a few pages and reserving a spacer for the rest, correct the scroll position when a page returns above the reader, save and restore a place with a cursor, keep the feed usable with a keyboard and a screen reader, and test all of it without a browser.
Think of reading a very long scroll of paper with a small window cut in a card. You never need the whole scroll on the table. You need the part in the window, a little more on each side, and a pencil mark that says "I was here" in case you put the scroll away and come back tomorrow. An infinite scroll feed is that scroll, and most of the engineering is in the mark and in what you do with the paper you rolled up.
This is an educational reference design, not the verified internal architecture of any company that ships a scrolling feed. It is built from public web platform documentation and a runnable lab. Every number in it is an illustrative assumption, labelled as such, and the lab measures no scrolling, layout or speed.
The running example is a community recipe feed inside a grocery marketplace app: cards with a photo, a title, a few lines of text and a button row, newest first, loaded as the shopper scrolls. It is deliberately not a social feed with ranking and likes; that is the next case study, Instagram- or Twitter-Style Social Feed. This one is about the list itself: how it grows, what it costs, and how the reader gets back to where they were.
The core idea
- A feed is a window moving over a list that has no end. Three windows move together: the window of data you hold, the window of DOM nodes you render, and the window the reader sees. Each can be a different size, and the design is choosing those sizes on purpose.
- Every page you keep has a price, paid on every layout and every frame. The server list is endless; the tab is not. A feed that only appends is a slow memory leak with a scrollbar.
- Throwing something away is only safe if you can bring it back. A page leaves the DOM with its cursor, its count and its height written down, so it can return, and so a saved position can be rebuilt after the reader leaves.
This lesson reuses two earlier ones and adds only the system view. Pagination: Offset, Cursor and Infinite Scroll (pagination) teaches the cursor contract, the sentinel and the race rules. List Virtualization (virtualization) teaches the window arithmetic for rows of known height. Here the question is what happens when you put them together under a real card, with pictures, unknown heights, a back button and a screen reader.
Requirements
Write the requirements before the architecture; they decide which window sizes are acceptable.
| Kind | Requirement | Why it matters here |
|---|---|---|
| Functional | Newest-first cards, loaded a page at a time as the reader scrolls | The cursor and the trigger |
| Functional | A "Load more" button and an end message | People who do not scroll, and a way out |
| Functional | Back from a recipe returns to the same card | Position memory, not just paging |
| Functional | New recipes may appear while the feed is open | A cursor that survives change |
| Quality | Scrolling stays smooth after a long session | Bounded DOM and bounded work per frame |
| Quality | Cards have unknown heights (photos, wrapped text) | No fixed-height arithmetic |
| Quality | Usable with a keyboard and a screen reader | The feed pattern, a reachable footer |
| Quality | Testable without a browser | Pure core, thin component |
Out of scope: ranking, likes and personalisation (the next case study), and the server's storage.
Estimating the cost of "just keep appending"
All numbers in this section are illustrative assumptions to show the shape of the arithmetic, not measurements.
Suppose a recipe card has about 40 DOM nodes (a wrapper, an image, text, a button row, icons), pages hold 20 cards, and a keen reader scrolls through 25 pages in one session.
| Quantity | Arithmetic | Result (illustrative) |
|---|---|---|
| Cards loaded | 25 pages x 20 cards | 500 |
| DOM nodes if all are kept | 500 x 40 | 20,000 |
| Cards if only 3 pages are kept | 3 x 20 | 60 |
| DOM nodes if only 3 pages are kept | 60 x 40 | 2,400 |
The reduction is a factor of about eight, and it does not grow with the session. That ratio is the point; the absolute numbers are not. What the browser does with a large DOM (style recalculation, layout, memory) is something you measure on your own pages with the profiling tools; the web.dev guide to virtualizing long lists says that rendering every item "can affect performance significantly" and that an excessively large DOM size "starts to impact performance". Use the arithmetic to decide whether to measure, then measure.
The same table shows the other side: cards you do not keep must be fetched again if the reader scrolls back, so the saving is paid for in requests and in complexity. For a short list it is not worth it.
The architecture: three windows
The design has three layers, and each answers one question.
Figure 1. The three windows of a feed
How to read this: pages come from the API into a bounded data window and are drawn as a bounded DOM window. The reader's place is saved off to the side (the dashed arrow from the DOM window) and, after leaving the feed, rebuilds the data window from a saved cursor (the dashed arrow back).
- Data window. Which pages exist in memory, in order, each with the cursor that produced it and the cursor of the next one.
- DOM window. Which of those pages are rendered. Pages above it are replaced by a spacer, a plain empty element with the height they had.
- Position memory. A small record, an item id plus how far into that item the reader had scrolled, with the cursors needed to get back there.
In the lab these are the pure functions in examples/frontend/labs/feed-window/src/feedWindow.ts; the React component only draws them.
The data window: what the earlier lessons already settled
The data side is the contract from the pagination lesson, and nothing here changes it:
- The cursor is opaque and names an item, so the list can change while it is read.
- One request is in flight at a time. A second trigger while loading does nothing.
- A response for a request you did not ask for is ignored.
- Items are merged by id.
The only addition is that a page is a record, not just a list of items. Each kept page remembers the cursor that fetched it. That one extra field is what makes eviction reversible, because "the page above the window" is then a request you can send again.
Figure 2. Loading the next page before the reader reaches the end
How to read this: the trigger fires early because the observer watches a sentinel inside a margin around the viewport. The rootMargin option of an IntersectionObserver adds offsets to the root's bounding box when it calculates intersections, and its default is 0px 0px 0px 0px, so you choose the margin that gives the request time to finish.
Start the request when the sentinel is a screen or so away, not when it is on screen. How much earlier depends on how long a page takes to arrive, which is a number you take from your own monitoring, not from this lesson.
The DOM window: three ways to keep the page light
| Strategy | What it does | Cost |
|---|---|---|
| Keep everything, skip the work | content-visibility: auto lets the browser skip rendering off-screen cards |
The nodes still exist (memory); sizes of skipped cards must be estimated |
| Virtualize by row | Render only the rows near the viewport, from an offsets table | Needs a height for every row, known or measured; loses find-in-page for what is not rendered |
| Window by page | Keep the last N pages, spacer for the pages above | Coarse; needs the cursor trick to bring a page back |
Figure 3. Choosing how to bound the DOM
make the DOM too big?"} A -->|"no, measured"| K["Keep everything
(simplest)"] A -->|"yes"| B{"Is memory the problem,
or rendering work?"} B -->|"rendering work"| C["content-visibility: auto
plus contain-intrinsic-size"] B -->|"memory / node count"| D{"Do you know or can you
measure every row height?"} D -->|"yes"| V["Virtualize by row"] D -->|"no, cards load by page"| W["Window by page
with a spacer"]
How to read this: start by asking whether there is a problem at all. The branches separate "the browser does too much work" from "there are too many nodes", because they have different fixes.
The MDN page for contain-intrinsic-size explains why the first strategy needs an estimate: it sets the size the browser uses for layout when an element is subject to size containment, and the auto <length> form remembers the "normally rendered" size once the element has been rendered, using the length you gave only until then. It is the cheapest option when work, not node count, is the problem.
The third option is the one this lesson builds, because a feed's cards have unknown heights and arrive as cursor pages. It is a coarse virtualizer: the unit that leaves the DOM is a page, not a row, so you need no height for each row, only a height for each page that left.
Illustration 1: the minimal example
The lab keeps three pages of ten items and estimates 100 px per item for items nobody has measured. The first page of the server's list is #80..#71. After each page is loaded, the window says what it holds.
Expected output, captured from a real run (node src/demo.ts in examples/frontend/labs/feed-window, copied from examples/frontend/golden/feed-window.txt):
=== a window of 3 pages over an endless list (10 items per page, 100 px estimated per item)
after 1 page(s): kept 1 pages [#80..#71 (10 items)] | items in DOM 10 of 10 loaded | spacer 0 px for 0 items
after 2 page(s): kept 2 pages [#80..#71 (10 items) | #70..#61 (10 items)] | items in DOM 20 of 20 loaded | spacer 0 px for 0 items
after 3 page(s): kept 3 pages [#80..#71 (10 items) | #70..#61 (10 items) | #60..#51 (10 items)] | items in DOM 30 of 30 loaded | spacer 0 px for 0 items
after 4 page(s): kept 3 pages [#70..#61 (10 items) | #60..#51 (10 items) | #50..#41 (10 items)] | items in DOM 30 of 40 loaded | spacer 1000 px for 10 items
after 5 page(s): kept 3 pages [#60..#51 (10 items) | #50..#41 (10 items) | #40..#31 (10 items)] | items in DOM 30 of 50 loaded | spacer 2000 px for 20 items
From the fourth page on, the DOM holds 30 items whatever the session length, and a spacer of 1,000 px, then 2,000 px, stands in for the pages that left. The spacer is what keeps the scrollbar and the scroll position honest: the cards the reader still sees are exactly as far from the top of the scroll area as before.
Memory of heights, and why the spacer can lie
A spacer is a promise: "the pages above are this tall." The height comes from two places. If the page was on screen it was measured (with a ResizeObserver, or by reading the element's size after layout); if not, it is the estimate. The lab stores measured heights by item id and uses the estimate for the rest.
The promise breaks when the real height changes while the page is away: the window is narrowed so the text wraps, a font finishes loading, an image the page had reserved no room for arrives. The spacer still says the old height. This matters at exactly one moment, when the page comes back.
Figure 4. The life of a page
How to read this: eviction is not deletion. A page that leaves keeps its cursor and height, so the only path back is "fetch again, render, measure, correct."
Illustration 2: the realistic example, a page returns above the reader
In the lab's second scenario, page one was evicted while measured at 130 px per item (a spacer of 1,300 px). The text has since wrapped: the same items now measure 150 px. The reader scrolls up, the page is fetched again and rendered where the spacer was.
Expected output, captured from a real run (node src/demo.ts in examples/frontend/labs/feed-window, second scenario):
=== a page comes back above the window after the layout changed while it was away
page 1 was evicted while measured at 130 px per item: spacer 1300 px
window after the page returned: kept 3 pages [#80..#71 (10 items) | #70..#61 (10 items) | #60..#51 (10 items)] | items in DOM 30 of 40 loaded | spacer 0 px for 0 items
the page is rendered with the heights remembered from before: 1300 px, the spacer had reserved 1300 px
measured now at 150 px per item: 1500 px
scrollTop must change by 200 px, or everything the reader sees jumps
The page that replaces a 1,300 px spacer is 1,500 px tall, so everything below it moves down by 200 px. If scrollTop is not moved by the same 200 px before the next paint, the card the reader was looking at slides away. The lab's scrollCorrection returns exactly that difference. Browsers have a built-in answer for part of this, scroll anchoring, which adjusts the scroll position to minimise content shifts, and the CSS property overflow-anchor can opt an element out of it. Whether it already covers your case depends on the browser and the markup, and it adjusts to content it can see, so a page that arrives asynchronously is a place to test it rather than assume it. The lesson's design makes the correction explicit instead of relying on it.
Two details make the correction reliable:
- Measure in the same frame as the render.
ResizeObservernotifications are delivered before paint, and style and layout are re-evaluated if there was any resize event, so a measurement and ascrollTopchange made there land in the same frame the reader sees. - Do not move a page's items again afterwards. Keys are the item ids, so React reuses the DOM nodes of cards that stay.
A new page that arrives below the reader needs no correction at all. Only changes above the reader's position shift what they see, which is also why a banner that inserts content at the top of a feed needs its own care, the subject of the next case study.
Position memory: leaving and coming back
Back from a recipe is the moment a feed is judged. The browser has two mechanisms, and your design should know which one it is relying on.
- The back/forward cache (bfcache) keeps "a snapshot of the entire page in memory, including the JavaScript heap", so a page restored from it keeps its JavaScript state, and the
pageshowevent'spersistedproperty says whether that happened. When it works, back to the feed is instant and your window is simply still there. - A normal reload of the page starts from nothing. The browser's
history.scrollRestorationproperty chooses the default behaviour:autorestores the place the user had scrolled to, andmanualleaves it to the page. A feed whose content arrives after the browser's attempt may find nothing yet at the place it is asked to restore, which is one reason a page can choosemanualand do the restoring itself.
Doing it yourself needs a record small enough to store. The lab's makeSnapshot writes this (plain JSON):
{"evicted":[{"cursor":null,"count":10,"height":1000},{"cursor":"after:71","count":10,"height":1000}],"startCursor":"after:61","anchorId":56,"offsetInItem":30}
It holds the spacer's pieces, the cursor of the first kept page, the id of the item at the top of the reader's view and how many pixels of it were already scrolled past. Where to keep it is an ordinary storage choice: sessionStorage lives for the page session, which "survives over page reloads and restores" and is cleared when the tab is closed, and history.state ties a small value to the history entry. Pick the one that matches how long the place should be remembered, and keep the record small, because it is read on every return.
Figure 5. Back to the feed: rebuild from a cursor
How to read this: only the cursor that starts the kept pages is fetched, not the whole history. The spacer is restored from the saved pieces, so the pages above are never downloaded just to measure them.
The rebuild is possible because the cursor names an item and not a position. An offset saved a minute ago would mean something different after new items arrived at the top; a cursor still means "after this item."
Illustration 3: the edge case, the anchor is gone
While the reader was away, two items were added at the top of the server's list and the item they had been looking at, #56, was removed. The rebuild should neither fail nor scroll to a wrong place.
Expected output, captured from a real run (node src/demo.ts in examples/frontend/labs/feed-window, third scenario):
=== leave the feed and come back: save the position, rebuild from a cursor
window when the reader leaves: kept 3 pages [#60..#51 (10 items) | #50..#41 (10 items) | #40..#31 (10 items)] | items in DOM 30 of 50 loaded | spacer 2000 px for 20 items
scrollTop 2430 px lands on item #56, 30 px into it
saved: {"evicted":[{"cursor":null,"count":10,"height":1000},{"cursor":"after:71","count":10,"height":1000}],"startCursor":"after:61","anchorId":56,"offsetInItem":30}
while the reader was away: 2 new items appeared at the top and item #56 (the anchor) was removed
rebuilt window: kept 1 pages [#60..#50 (10 items)] | items in DOM 10 of 10 loaded | spacer 2000 px for 20 items
restored scrollTop 2400 px (the anchor is gone: the next older item, #55, is used with no offset)
request: cursor (first) q="" -> #80..#71 (10 items)
request: cursor after:71 q="" -> #70..#61 (10 items)
request: cursor after:61 q="" -> #60..#51 (10 items)
request: cursor after:51 q="" -> #50..#41 (10 items)
request: cursor after:41 q="" -> #40..#31 (10 items)
request: cursor after:61 q="" -> #60..#50 (10 items)
The last request is the rebuild: a single page fetched from the saved cursor, after:61. Because item #56 no longer exists, the lab takes the next older item (#55) and puts it at the top of the view with no offset. The two new items at the top are not in the rebuilt window: the spacer above still stands for the old pages, and a "new items" notice is a separate feature. The rule that makes this work is stated in the lab, which assumes ids decrease down the list; a feed ordered another way needs an ordering key in the snapshot instead.
Triggers, buttons and the reachable footer
Three smaller decisions finish the list.
- The trigger. A sentinel after the last card, watched by an
IntersectionObserver, is the usual trigger; see the pagination lesson for rebuilding the observer after each page so a short page on a tall screen does not stall the list. Keep a "Load more" button too: it works without scrolling, and it is the fallback when the observer does not fire. - The end. A
nullcursor shows an end message. Never leave the sentinel asking. - The footer. A footer below an endless list can never be reached by scrolling, because the list grows each time the sentinel is seen. Put the links people need somewhere else, or load by button so the footer stays reachable.
Accessibility of a feed
The WAI-ARIA Authoring Practices describe a feed as "a section of a page that automatically loads new sections of content as the user scrolls", with each unit in an element with role article. Each article carries aria-posinset for its position and aria-setsize for the total, "a value of -1" when the total is undetermined, and an aria-labelledby that points to something inside it that names it. The feed element has aria-busy set to true during an update and, importantly, back to false when it finishes.
Windowing adds one rule: positions are absolute. The lab's component computes aria-posinset as the number of evicted items plus the index in the window plus one, so the first rendered card in the lab's test reports position 21 after 20 items have left, not 1. The pattern also recommends keyboard commands: Page Down moves focus to the next article, Page Up to the previous one, and Control+End moves focus to the first focusable element after the feed. Wiring those is your job; the pattern describes them as recommended, not as built in, and this lab does not implement them.
Two failure modes are specific to windowing. If the focused element is inside a card that is evicted, focus is lost with it; evict only pages that do not contain the focused element. And a spacer is not content: it is aria-hidden in the lab, so a screen reader does not announce an empty block.
Trade-offs
| Choice | Good | Bad | Choose it when |
|---|---|---|---|
| Keep every page | Simplest; going back is free | DOM and memory grow with the session | Sessions are short, measured as fine |
content-visibility: auto |
One CSS rule; no state | Nodes stay; size estimates needed | Work, not node count, is the problem |
| Row virtualization | Smallest DOM | Needs every row's height; find-in-page gaps | Rows have known or measurable heights |
| Window by page | No per-row heights; reversible by cursor | Coarse; a spacer that can drift; a refetch on scroll-up | Cards of unknown height arrive as cursor pages |
Position in sessionStorage |
Survives reload in the tab | Per tab; cleared on close | A place should last the visit |
| Rely on bfcache only | No code | Not guaranteed to apply | As a bonus on top of a saved position |
Build it
The lab is two folders. examples/frontend/labs/pagination-infinite-scroll is the existing one and is unchanged: it holds the fake server (FakeServer, with a cursor API) and the paging, race and sentinel tests. The new lab examples/frontend/labs/feed-window imports FakeServer from it and does not duplicate any of that.
src/feedWindow.ts: the pure functions (appendPage,restoreAbove,scrollCorrection,anchorAt,makeSnapshot,restoredScrollTop).src/windowController.ts: a store withloadNext,loadPreviousandrebuildFromSnapshot.src/WindowedFeed.tsx: a thin component, a spacer, arole="feed"list, two buttons.src/demo.ts: the three scenarios whose output is shown above.
cd examples/frontend/labs/feed-window
../../node_modules/.bin/vitest run
../../node_modules/.bin/tsc -p tsconfig.json
node src/demo.ts
Verified. The 16 tests in two files passed with Vitest 5.1.0 and the type check passed. They cover: eviction and the spacer, measured heights over the estimate, ignoring a response for another request, restoring only with the right cursor, dropping a page from the bottom when a page returns, the scroll correction, finding the anchor, rebuilding after items were added above or the anchor was removed, one request at a time, and the component: a bounded DOM, a spacer height, absolute aria-posinset, and the earlier-items button. The captured demo output is identical to the golden file.
jsdom does no layout, so heights are numbers the tests choose. The lab shows that the arithmetic is right, not that it feels right in a browser. Nothing in it measures scrolling, memory or speed, and the effect of ResizeObserver timing and scroll anchoring on a real page is not tested.
Break it. In src/feedWindow.ts, in appendPage, change if (expected === "end" || expected.cursor !== requestCursor) return state; to if (expected === "end") return state;. The test "ignores an answer to a request that is not the expected one" fails, because a late answer for another page is now appended to the window. The change was reverted and the tests re-run.
In practice: a recipe feed in a marketplace app
This is a realistic scenario, not a case history. It is a composite built from common production patterns. It describes no specific company or product, and every number in it is an illustrative assumption.
The situation
A grocery marketplace shows a recipe feed on its mobile web app. Shoppers open a recipe, read it, press Back and continue scrolling. Support reports that long sessions get sluggish, that Back sometimes drops people at the top of the feed, and that a few shoppers see the feed jump when they scroll up.
Starting architecture
Figure 6. An append-only feed
How to read this: the two warning boxes are the problems. The DOM only grows, and opening a recipe unmounts the feed, which discards the list and the position with it.
Options considered
| Option | What it fixes | What it costs | Risk |
|---|---|---|---|
| Keep the feed mounted behind the recipe | Back is instant | Memory of a hidden feed; routing complexity | The hidden DOM still counts |
| Row virtualization | Smallest DOM | A height for every card, with photos | Wrong estimates make the scrollbar lie |
| Window by page plus a saved position | Bounded DOM; Back rebuilds from a cursor | A spacer to maintain; a refetch on scroll-up | The spacer can drift if layout changes |
The decision
| Field | Decision record |
|---|---|
| Context | A long session grows the DOM and Back loses the place. |
| Decision | Keep the last three pages in the DOM, with a spacer for the rest. Save an anchor item, an offset and the cursors in sessionStorage when a recipe opens. Rebuild from the saved cursor on Back and apply a scroll correction when an earlier page returns. Keep a "Load more" button. |
| Consequences, good | A bounded DOM; Back returns to the card; no per-card height table. |
| Consequences, bad | A coarse window; spacers can drift; one more request on scroll-up. |
| Revisit when | Cards get a fixed height (then row virtualization is simpler) or measurement shows the DOM was never the problem. |
Rollout and verification
- Measure first. Record the card count and the main-thread time of a scroll on a long session, so the change has a baseline. These numbers come from your own tooling.
- Ship the saved position before the window. Back works for every session, and it is the smaller change.
- Turn the window on for a share of users and compare scroll smoothness and the rate of "feed jumped" reports.
- Test the edge cases in jsdom: the anchor removed, new items above, an expired position.
The 2 a.m. failure
After a layout change that makes cards taller on wide screens, the scrollbar jumps by a large amount when shoppers scroll up. The spacer still holds heights measured before the change, because the heights map was kept in memory across a resize.
First three checks: (1) log the correction (measured height minus reserved height) when a page returns, and look for large values; (2) check that the measured-heights map is cleared or re-measured when the width of the feed changes; (3) check that the correction is applied before paint, not in a later effect. Mitigation: discard the measured heights on resize so the estimate is used again until the next measure. Follow-up: a test that changes the heights between eviction and return.
Architect's notes
- Write down the three window sizes. Pages in memory, pages in the DOM and the margin of prefetch are three numbers, and each has a different failure when it is wrong.
- An evicted page is a record, not a deletion. Cursor, count and height are the minimum that makes eviction reversible.
- Keep geometry out of the state machine. Heights come in as numbers; the pure functions never read the DOM, so they test without one.
- Make the correction explicit. Whether browser scroll anchoring would have done it is a thing to test, not a thing to assume.
- A saved position is a contract with the cursor. If the cursor format changes, old snapshots must be ignored, not misread.
Common mistakes
- Only appending, and discovering the DOM size in production.
- Evicting without remembering the cursor, so scrolling back up needs the whole list again.
- Estimating every height once and never measuring. The scrollbar is wrong from the start.
- Correcting scroll in a later effect instead of before paint, which shows one frame of jump.
- Restoring a position by offset or pixel count into a list that has changed.
- Resetting
aria-posinsetto 1 when pages leave the DOM. - A footer under an endless list that can never be reached.
Key takeaways
- A feed is three windows: data, DOM and remembered position. Size each on purpose.
- Bound the DOM when a long session makes it a problem, and measure before you decide it does.
- Eviction is reversible if each page keeps its cursor, count and height.
- A spacer is a promise about height; it breaks when layout changes while a page is away, and the scroll position must be corrected by measured minus reserved.
- Save the place as an item id plus an offset plus cursors, and rebuild from a cursor, not from an offset.
- Positions are absolute for assistive technology, and the feed needs a reachable end.
Practice exercises
Exercise 1: Starter (30 min). With pages of 20 cards and a window of 4 pages, work out how many cards are in the DOM after 11 pages and what the spacer height is if each card is estimated at 120 px. Check it against topSpacer in the lab.
Exercise 2: Intermediate (2 hours). Add a ResizeObserver to WindowedFeed that calls measure for each card and applies scrollCorrection to the scroller's scrollTop when loadPrevious finishes. List what you could not test in jsdom.
Exercise 3: Advanced (half day). Save the snapshot to sessionStorage when the page is hidden and rebuild it on load. Decide what to do when the saved cursor is refused by the server, and write the test.
Related reading
In this course:
- Pagination: Offset, Cursor and Infinite Scroll: the cursor contract, the sentinel and the race rules this design builds on.
- List Virtualization: row windowing with known heights, overscan and what unmounting costs.
- React Keys, Lists and Identity: why keys by id keep nodes stable as pages come and go.
- CLS and Layout Stability: reserving space for images so heights do not change late.
- Keyboard, Focus and Screen Readers: focus management when elements leave the DOM.
- Memory Management and Leaks: what an ever-growing list does to a long-lived tab.
Official documentation
- WAI-ARIA APG: Feed pattern:
feed,article,aria-posinset,aria-setsize,aria-busyand the keyboard commands. - web.dev: Virtualize large lists with react-window: why large lists hurt, windowing and overscan.
- MDN: contain-intrinsic-size: estimated sizes for skipped content and the remembered size.
- MDN: History.scrollRestoration:
autoandmanual. - web.dev: Back/forward cache: what bfcache keeps and the
pageshowevent. - MDN: ResizeObserver: when resize notifications are delivered relative to paint.