title: How to detect idle time in JavaScript
body: <p>Is it possible to detect &quot;<strong>idle</strong>&quot; time in JavaScript?</p>
  <p>My primary use case probably would be to pre-fetch or preload content.</p>
  <p>I define idle time as <em>a period of user inactivity or without any CPU usage</em></p>