Coding Session: Stunning Performance
summary
Demonstrates using the browser Performance API and PerformanceObserver to capture long task events and custom performance marks/measures, sending entries to an analytics endpoint (console in the demo). Reproduces a 7s scripting spike via a recursive Fibonacci function that emerges when the page has 42 images, adds performance.mark/measure around the problematic “guide image,” ships telemetry, and shows an optimization that reduces the measured latency from 8,300 ms to 54 ms in modern browsers (IE unsupported).
AI-written summary · about
chapters (9)
- 0:00Performance monitoring
- 1:05Real user data
- 2:55JavaScript bottleneck
- 4:25Long tasks API
- 6:37PerformanceObserver
- 8:45Custom marks
- 10:16Tracking long tasks
- 12:56Before vs after
- 14:39Performance takeaways
related talks
01h 02mWeb Performance Tuning with browser APIs
28mMeasuring User centric performance
17mVisualising Front-End Performance Bottlenecks
40mPerformance Patterns
30mPerformance Tuning Secrets
59mWeb performance APIs you (probably) didn't know existed
20mReal metrics for front-end performance
50mWeb Performance APIs You (probably) Didn't Know Existed
