← Back to release summary

navigator.scheduling.isFramePending

Category
Performance
Type
New or changed feature
Status
In development (Chrome In development)
Intent stage
Start prototyping

WPT details: This isn't complete, but it's a start: https://github.com/web-platform-tests/wpt/pull/18815

Summary

Returns a boolean indicating whether the browser intends to update the visual display – including updating animations and running requestAnimationFrame() callbacks – at the next opportunity (i.e., after the currently-running javascript task yields back to the browser).

Motivation

Provides developers with better information for making decisions in code about when to defer work and yield back to the browser's event loop

Standards & signals

Ecosystem

Docs: https://github.com/szager-chromium/isFramePending/blob/master/explainer.md

Explainers: https://github.com/szager-chromium/isFramePending/blob/master/explainer.md

View on chromestatus.com