Virtual List

You might say

This log viewer has 5,000 rows and the whole page freezes as soon as it opens—even scrolling stutters.

A long-list rendering technique that mounts only the rows visible in the viewport plus a small buffer while using spacer heights to preserve the full scrollbar.Mounting 10,000 chat messages, ledger rows, or log lines at once overwhelms browser layout and memory; a virtual list keeps only ~10–20 real DOM nodes alive and swaps their data as you scroll. Unlike pagination (splitting into discrete pages) or infinite scroll (which keeps appending nodes without recycling earlier ones), virtualization trades away native Ctrl+F over off-screen rows and is unnecessary for short lists.
Know first
Virtual ScrollWindowingList Virtualization

You can say this to an AI Agent

Ready to paste into Cursor, Claude Code, or Codex
Structured AI Agent prompt

This log list has over 5,000 rows and freezes on open and scroll. Switch it to a virtual list (such as `@tanstack/react-virtual`) that renders only the visible rows plus a small overscan buffer, and add an in-app search filter since browser `Ctrl+F` cannot search unmounted rows. Test with 5,000 rows to verify smooth scrolling, no blank flashes, and low mounted DOM node count.

Want your Agent to translate plain-language UI ideas automatically?Install free VibeHub Skill →
Oil UI Pro. Push AI’s design skills to the limit. Usability, existing projects and stricter review.
Further reading