← All case files
Shipped2026

Fixing the dropdown that froze the tab

I built a virtualized autocomplete that stays smooth on datasets of 5,000+ records.

Situation

Opening an autocomplete with thousands of records froze the screen. Sometimes the whole tab stopped responding.

Decision

Render only the rows a user can see. A person sees about a dozen rows at once, not five thousand.

What I did

  • Reproduced the freeze with a realistic amount of data, not a handful of rows.
  • Read the DevTools performance profile: the cost was one DOM node for every option.
  • Built the autocomplete on react-window so only the visible rows exist on the page.

Result

Smooth interaction on 5,000+ records. It shipped as a reusable component, alongside shared error boundaries and confirmation containers.

Try it

Client record #0001
Client record #0002
Client record #0003
Client record #0004
Client record #0005
Client record #0006
Client record #0007
Client record #0008
Client record #0009
Client record #0010
On the page: 10 rowsof 5,000

Measured

  • In the demo on this page, the virtualized list keeps about a dozen rows on the page instead of 5,000, over 99% fewer.

That figure comes from the demo, which uses the same idea as the real component.

Used

  • react-window
  • React
  • Chrome DevTools
Next case fileResolving 500+ production issues by finding the wrong layer first