You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main challenge with this API is that there isn't really any centralized scheduling system in WebKit. We need to complete the refactoring & integration of the HTML5 event loop before we can have a meaningful description / attribution as to what took long.
For our use-case, we don't really use the attribution portion of the spec and find that the most important part is knowing when & for how long the UI thread was blocked. We correlate this information with our internal analytics systems to have a general understanding of what was happening when the task occurred.
Would delaying the attribution portion help to ship a basic version faster?
The name of the API should be "Long tasks reporting" or "Long tasks detection" or "Long tasks performance entries". This isn't really a new API, it's just new reporting.
"A pause between the last step and the next first step of the event loop processing model. This captures any work that the user agent performs in its UI thread outside of the event loop.": not sure web pages have any business knowing what the user agent is doing.
Activity
hober commentedon Sep 1, 2022
cc @achristensen07 @rniwa
rniwa commentedon Sep 11, 2022
The main challenge with this API is that there isn't really any centralized scheduling system in WebKit. We need to complete the refactoring & integration of the HTML5 event loop before we can have a meaningful description / attribution as to what took long.
BenjaminHarding commentedon Sep 13, 2022
Thanks for the context @rniwa.
For our use-case, we don't really use the
attributionportion of the spec and find that the most important part is knowing when & for how long the UI thread was blocked. We correlate this information with our internal analytics systems to have a general understanding of what was happening when the task occurred.Would delaying the attribution portion help to ship a basic version faster?
rniwa commentedon Sep 15, 2022
Not really. The main issue here is that WebKit doesn't have an easy mechanism to keep track when the main thread was busy and for how long.
smfr commentedon Oct 18, 2023
Some initial thoughts:
cross-origincases can't easily be detected without this API, so there is some new information leakage here.