Trevixal API
    Preparing search index...
    • Call onIdle once nothing has happened in the page for idleMs: no key, no pointer, no scroll. Each sign of activity starts the wait again, and after onIdle the next one starts it too, so a lock screen left alone reports again rather than going quiet. Returns a disposer.

      Parameters

      • document: Document
      • idleMs: number
      • onIdle: () => void

      Returns () => void