Padhlegram 📸 — why Instagram doesn't render your whole feed

Same feed, three ways. Every number is measured live in this tab. Try it, then scroll like you're avoiding your DPP.

1 · Pick a strategy

2 · What it cost (measured)

—load → first paint
0posts in the DOM
0DOM elements in the feed
—🌙 dark mode → paint
—worst tap (INP-style)
—auto-scroll smoothness

3 · The film set

Load a feed. The red band shows which part of the feed actually exists as DOM right now.

How the real ones do it

  • Web: TanStack Virtual, react-window, react-virtuoso. Measure item heights, render the visible window plus a few extra, recycle the rest.
  • Android: RecyclerView · iOS: dequeueReusableCell · Flutter: ListView.builder · React Native: FlatList. Same idea, different accent.
  • Lazy man's version: content-visibility: auto — one CSS line; the browser skips drawing off-screen items. Good for long articles; for a feed of 10,000, all nodes still sit in memory.
  • This demo uses a fixed post height to keep the maths honest-but-simple. Real libraries measure each item.

Pick a strategy and hit Load feed.