Skip to content

Prioritized Task Scheduling #1120

Closed
Closed

Description

@jgraham

Description

This Prioritized Task Scheduling API is useful for web developers to provide a more responsive experience to users, reduce jank, and improve the performance characteristics of webapps.

Although this feature is currently in WICG there is agreement to move it onto the standards track.

Specification

https://wicg.github.io/scheduling-apis/#scheduler

web-feature

scheduler

Test Links

https://wpt.fyi/results/scheduler?label=experimental&label=master&aligned

Additional Signals

https://chromestatus.com/metrics/feature/timeline/popularity/3145 shows usage of this API on up to ~1.8% of page loads.

Activity

  1. github-actions commented on Sep 22, 2025

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
    If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

    Feature Scheduler API

  2. jgraham commented on Sep 22, 2025

    @jgraham
    ContributorAuthor

    To be clear, this proposal does not include scheduling.isInputPending.

  3. brendankenny commented on Sep 24, 2025

    @brendankenny

    Additional Signals

    https://chromestatus.com/metrics/feature/timeline/popularity/3145 shows usage of this API on up to ~1.8% of page loads.

    I think you want https://chromestatus.com/metrics/webfeature/timeline/popularity/118 (as linked in the web-features snippet). It includes both scheduler.postTask (the original link) and scheduler.yield at ~7.5% of page loads. Together, at least one of the two scheduler APIs is used on up to ~8.9% of page loads.

  4. atscott commented on Dec 11, 2025

    @atscott

    I’d like to note that without scheduler.postTask and user-blocking priority, there’s no API that I’m aware of that can effectively coalesce work from within the microtask queue to ensure any additional necessary dom manipulation happens before the next paint.

    E.g. I have a state synchronization process that modifies the dom and there may be follow up synchronization needed from application promises resolving in the current microtask loop. All I can do now for coalescing that work is queueMicrotask, which will execute before any nested microtasks in the queue (really easy to happen with async/await). Another alternative would be to loop some arbitrary number of microtasks to attempt to “flush” the current queue.

    For this use case, I think the scheduler APIs would be immensely beneficial. What I’m looking for here is “on microtask queue empty” with a continuation. Exiting the microtask queue can result in a user visible flicker if the dom updates are split across paints.

  5. wpt-interop commented on Feb 12, 2026

    @wpt-interop
    Collaborator

    Thank you for proposing Prioritized Task Scheduling for Interop 2026.

    We want to let you know it was not selected to be part of Interop this year.

    On behalf of the entire Interop team, thank you for submitting it for consideration. We got many more proposals than we could include in this year's project, necessitating some difficult choices. Please note this should not be taken as a comment on the technology as a whole, or our willingness to consider it for Interop in the future. We appreciate the work you put into your proposal, and would welcome your participation in future rounds of Interop.

    Posted on behalf of the Interop team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions