Detecting idle time in JavaScript elegantly
<p>Is it possible to detect "<strong><em>idle</em></strong>" time in JavaScript?<br />
My primary use case probably would be to pre-fetch or preload content.</p>

<p>Idle time: <em>Period of user inactivity or without any CPU usage</em></p>
