Intent to Prototype: Initiator Info in Resource Timing API

76 views
Skip to first unread message

Yash Joshi

unread,
Sep 5, 2023, 11:17:02 AM9/5/23
to blin...@chromium.org

Contact emails

yashjo...@gmail.com

Explainer

https://docs.google.com/document/d/1ODMUQP9ua-0plxe0XhDds6aPCe_paZS6Cz1h1wdYiKU/edit

Specification

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.



Blink component

Blink>PerformanceAPIs>ResourceTiming

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.



Initial public proposal

https://github.com/w3c/resource-timing/issues/263

TAG review

None

TAG review status

Pending

Risks



Interoperability and Compatibility

None



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Is this feature fully tested by web-platform-tests?

No

Flag name on chrome://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1459950

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/6197847657021440

This intent message was generated by Chrome Platform Status.

Yash Joshi

unread,
Sep 5, 2023, 11:27:21 AM9/5/23
to blink-dev, Yash Joshi

Just sharing an update. Tentative WPT Tests Added in CL : https://chromium-review.googlesource.com/c/chromium/src/+/4659532. Feature Implementation Behind RuntimeEnabled Flag CL: https://chromium-review.googlesource.com/c/chromium/src/+/4812813

Regards

Yoav Weiss

unread,
Sep 6, 2023, 12:02:57 AM9/6/23
to Yash Joshi, blink-dev
Thanks for working on this!! :)

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/90436bc2-bfd4-4680-bccc-c094bfa89d94n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages