Delayed Dispatch of PerformanceEntries
- Category
- Performance
- Type
- New or changed feature
- Status
- No active development (Chrome No active development)
- Intent stage
- None
Summary
Previously, we always dispatched PerformanceEntries to PerformanceObservers via a simple PostTask. We propose to switch to dispatching these entries during idle times, or 100ms after they’ve been queued, whichever comes first. The spec encourages this new behavior: “The performance timeline task queue is a low priority queue that, if possible, should be processed by the user agent during idle periods to minimize impact of performance monitoring code.”
Standards & signals
- Specification: https://w3c.github.io/performance-timeline/
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: http://crbug.com/778359
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=delayed-dispatch-of-performanceentries
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Delayed%20Dispatch%20of%20PerformanceEntries
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Delayed%20Dispatch%20of%20PerformanceEntries
- Baseline status: https://webstatus.dev/?q=Delayed%20Dispatch%20of%20PerformanceEntries
Docs: https://docs.google.com/document/d/1IBtjRvLgoN1OGcQYZISFQmeN0HShlxdm1IjmxZ-xaXw/edit?usp=sharing