Initiator Info in Resource Timing API
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- In development (Chrome In development)
- Intent stage
- None
Summary
This feature enhancement proposes the addition of a new field to the PerfomanceResourceTiming API which will expose the initiator information, allowing the creation of dependency trees from Real User Monitoring (RUM) data. This enhancement will greatly improve understanding of resource loading performance, enabling developers and RUM providers to optimize web apps for faster performance.
Motivation
Before Task Attribution API had landed there was no way to identify which JS is the initiator of other JS tasks. Developers thus needed to rely on costly runtime stack analysis or third-party tools for insights into resource loading. By leveraging Task Attribution, this project aims to pinpoint resource triggers, enabling early optimization and better resource management. Real User Monitoring (RUM) providers can benefit from accurate dependency trees, improving resource insights and optimization decisions.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1459950
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=initiator-info-in-resource-timing-api
- 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+Initiator%20Info%20in%20Resource%20Timing%20API
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Initiator%20Info%20in%20Resource%20Timing%20API
- Baseline status: https://webstatus.dev/?q=Initiator%20Info%20in%20Resource%20Timing%20API
Explainers: https://docs.google.com/document/d/1ODMUQP9ua-0plxe0XhDds6aPCe_paZS6Cz1h1wdYiKU/edit