Crossbrowser & lightweight way to check if user is looking at the page or interacting with it. (wrapper around HTML5 visibility api)
setInterval + requestIdleCallback function
Detect when the browser is idle
Background tasks API abstraction. Do background work during browser idle time.
Allows for functions to be run through mac natiely
Schedule recursive calls on idleTimeout for jank-free computation.
Wait to render until the browser has less load
Be nice to host, run "onIdle"
Simple and lightweight jQuery plugin for user-presence detection.