Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 2.05 KB

OriginTrialStatus.md

File metadata and controls

55 lines (37 loc) · 2.05 KB

Origin Trial Status of scheduler.postTask

We'll be running an Origin Trial in Chrome 82-84 to allow testing this API in the wild.

This page tracks the current status of what parts of the APIs are implemented as part of the trial. Please read the explainer to understand how to take advantage of these APIs.

In addition to participating via the origin trial, these APIs are available on Chrome Canary and Dev by turning on experimental web platform APIs in Chrome. You can do that by navigating to chrome://flags/#enable-experimental-web-platform-features.

To disable postTask locally for testing (e.g. to compare performance with and without the feature), pass the following on the command-line when running Chrome:

--disable-blink-features=WebScheduler --origin-trial-disabled-features=WebScheduler

Minimum Version for Local Testing

The minimum supported Chrome version for postTask is 81.0.4044.9.

The minimum supported Chrome version for onprioritychange and currentTaskSignal is 82.0.4084.0.

Implementation Status

  1. scheduler.postTask has been implemented, including parameters for priority and delay.

  2. TaskController and TaskSignal have been implemented.

  3. Priority inheritance has been implemented and exposed through scheduler.currentTaskSignal.

  4. An onprioritychange event has been added to TaskSignal.

Examples

Sample code can be found here, which covers the currently implemented features. Please see the explainer for more context.

TODO(shaseley): add examples for scheduler.currentTaskSignal and onprioritychange.

Filing Issues

For API issues or concerns, please file a GitHub issue.