Chartbreaker
    Preparing search index...

    Interface IdleDeadline

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

    MDN Reference

    interface IdleDeadline {
        didTimeout: boolean;
        timeRemaining(): number;
    }
    Index

    Properties

    Methods

    Properties

    didTimeout: boolean

    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.

    MDN Reference

    Methods

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

      MDN Reference

      Returns number