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
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=994063
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=navigator-scheduling-isframepending
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+navigator.scheduling.isFramePending
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=navigator.scheduling.isFramePending
- Baseline status: https://webstatus.dev/?q=navigator.scheduling.isFramePending
Docs: https://github.com/szager-chromium/isFramePending/blob/master/explainer.md
Explainers: https://github.com/szager-chromium/isFramePending/blob/master/explainer.md