Considering performance, and why we switched to composition
summary
Explains concrete fixes: use V-if to remove heavy DOM instead of V-show, measure with Lighthouse and watch web vitals like LCP CLS INP and FCP, avoid >1500 DOM nodes when possible, and virtualize long lists so 2,000 items render ~23 visible rows. Demonstrates useElementVisibility to defer complex cells, useVirtualList for overscan-driven rendering, and useWebWorker with JSON stringify to keep the main thread responsive. Shows bundle wins from composition API via smaller composables, better tree shaking and easier testing.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 2:11Why consider performance
- 3:34Testing for performance
- 7:31Conditional rendering with v-if vs v-show
- 10:04Intersection Observer for visibility
- 13:01Virtual list for large datasets
- 15:54Offloading work to Web Workers
- 20:42Loading states and UX
- 23:09Bundle size optimization
- 24:35Switching to composition API
- 27:11Q&A on View 2 to 3 migration
