Virtual Scrolling for Large Lists
vue-virtual-scroller, RecycleScroller, fixing item height vs variable height rendering.
The Large List Problem
Rendering thousands of DOM nodes is slow and memory-hungry. Virtual scrolling renders only the items currently visible in the viewport, recycling DOM nodes as you scroll.
Installing vue-virtual-scroller
A popular library is vue-virtual-scroller. Install it and import its styles.
npm install vue-virtual-scrollerAll lessons in this course
- v-memo for Template Memoization
- Profiling with Vue DevTools Performance Tab
- Virtual Scrolling for Large Lists
- Web Workers with Vue