IdleDeadline

The IdleDeadline interface is used as the data type of the input parameter to idle callbacks established by calling Window.requestIdleCallback().

MDN Reference

Properties

Link copied to clipboard

The read-only didTimeout property on the IdleDeadline interface is a Boolean value which indicates whether or not the idle callback is being invoked because the timeout interval specified when Window.requestIdleCallback() was called has expired.

Functions

Link copied to clipboard

The timeRemaining() method on the IdleDeadline interface returns the estimated number of milliseconds remaining in the current idle period.