StealThis .dev

Windowed List

Render only the visible rows in a fixed-height scroll surface with overscan.

Open in Lab
html css javascript react
Targets: TS JS HTML React

Code

Windowed List

Render only the visible rows in a fixed-height scroll surface with overscan.

Support notes

Manual windowing keeps DOM work proportional to the viewport. IntersectionObserver is used for the feed sentinel; row heights are intentionally explicit so the math stays predictable.

Included demo

  • Vanilla HTML, CSS, and JavaScript with zero external dependencies.
  • React equivalent using the same interaction model.
  • A Lab route for trying the behavior in isolation.

Integration checklist

Keep state updates separate from presentation, preserve semantic labels, and add persistence or server callbacks at the boundary where your product needs them.