Web features explorer

isInputPending()

This feature is discouraged — The navigator.scheduling.isInputPending() method may incorrectly return false and is not the only case where you might expect to yield.

Consider using Scheduler API instead.

For more information, see: https://web.dev/articles/optimize-long-tasks#isinputpending

The navigator.scheduling.isInputPending() method checks if there are pending input events, such as touch or mouse events. This allows you to yield from long-running scripts that might be blocking user interaction.

Browser support

  • Chrome 87 Released on 2020-11-17
  • Chrome Android 87 Released on 2020-11-17
  • Edge 87 Released on 2020-11-19
  • Firefox Not supported
  • Firefox for Android Not supported
  • Safari Not supported
  • Safari on iOS Not supported