MuckRock / documentcloud-frontend

DocumentCloud's front end source code - Please report bugs, issues and feature requests to info@documentcloud.org
https://www.documentcloud.org
GNU Affero General Public License v3.0
18 stars 5 forks source link

Apply virtualization to list components #849

Open allanlasser opened 2 days ago

allanlasser commented 2 days ago

Virtualization only renders the visible items of a list, reducing the memory footprint of the application in the browser and keeping the application performant. A component that virtualizes its children can be added as a library or created for ourselves. It's possible that we'd want to toggle virtualization depending on the length of the list.

Components that would benefit the most from virtualization:

Components that would benefit less from virtualization: