Skip to main content

Performance: Debounce, Throttle, Virtualisation and Web Vitals

Learn Performance: Debounce, Throttle, Virtualisation and Web Vitals (Phase 17 · Advanced Internals and Performance (Advanced), JavaScript) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Measure first • Use Lighthouse and the DevTools Performance tab; track Core Web Vitals : LCP (largest contentful paint, loading), INP (interaction to next paint, responsiveness) and CLS (layout shift, stability). • Instrument code with performance.now() , performance.mark/measure and the PerformanceObserver . • Optimise the biggest bottleneck first; most slowness is network, images and too much JavaScript, not a clever loop.

More lessons in Phase 17 · Advanced Internals and Performance (Advanced)