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
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.
-
scheduler.postTask
has been implemented, including parameters forpriority
anddelay
. -
TaskController
andTaskSignal
have been implemented. -
Priority inheritance has been implemented and exposed through
scheduler.currentTaskSignal
. -
An
onprioritychange
event has been added toTaskSignal
.
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
.
For API issues or concerns, please file a GitHub issue.