Intent to Prototype: User-defined entry points in long animation frame timing

53 views
Skip to first unread message

Chromestatus

unread,
Nov 7, 2024, 6:37:45 AMNov 7
to blin...@chromium.org, nrose...@chromium.org, shas...@chromium.org

Contact emails

nrose...@chromium.org, shas...@chromium.org

Explainer

https://github.com/w3c/long-animation-frames/blob/main/user-defined-script-entry-point-explainer.md

Specification

https://w3c.github.io/long-animation-frames

Summary

Long animation frames allow insight into main-thread bottlenecks that can result in jank and bad INP. Some of these insights are the monitoring of long "script entry points" - callbacks from the platform (event handlers/script blocks etc) that take more than 5ms. However, those "entry points" are often too coarse, and don't give enough insight about the true cause of the bottleneck This feature allows user code to define its own "entry points", and those entry points would appear as bottleneck in the LoAF API.



Blink component

Blink>PerformanceAPIs

Motivation

See https://github.com/w3c/long-animation-frames/issues/3. From the inception of long animation frames, this was the biggest pain point, where bottlenecks were often attributed to "wrappers" of frameworks and RUM libraries, not giving actionable insight about the culprit script.



Initial public proposal

https://github.com/w3c/long-animation-frames/blob/main/user-defined-script-entry-point-explainer.md

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 about://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5204094577541120?gate=5203521979547648

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages