Skip to content

Long Tasks API #52

Open
Open

Description

@BenjaminHarding

Activity

  1. hober commented on Sep 1, 2022

    @hober
    Member
  2. rniwa commented on Sep 11, 2022

    @rniwa
    Member

    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.

  3. BenjaminHarding commented on Sep 13, 2022

    @BenjaminHarding
    Author

    Thanks for the context @rniwa.

    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?

  4. rniwa commented on Sep 15, 2022

    @rniwa
    Member

    Would delaying the attribution portion help to ship a basic version faster?

    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.

  5. added
    topic: web apis
    from: Google
    on Sep 25, 2022
  6. moved this from Unscreened to Needs position in Standards Positions Review Backlogon Mar 23, 2023
  7. moved this from Needs position to Needs assignees in Standards Positions Review Backlogon Mar 27, 2023
  8. moved this from Needs assignees to Needs position in Standards Positions Review Backlogon Mar 27, 2023
  9. smfr commented on Oct 18, 2023

    @smfr

    Some initial thoughts:

    1. 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.
    2. Some of the points in https://w3c.github.io/longtasks/#priv-sec dont' seem to be correct any more with process-per-site; I think some of the cross-origin cases can't easily be detected without this API, so there is some new information leakage here.
    3. "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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

from: Googletopic: performancetopic: web apisvenue: W3C Web Performance WG

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions