Pretext vs Naive

A scroll performance comparison — 10 000 chat messages, two rendering strategies. Open each page and try scrolling.

Baseline Naive rendering All 10 000 DOM nodes inserted at once. Optimised Virtual list Only ~30 nodes in the DOM at any time, heights pre-computed with Pretext.