Is it possible to detect \"idle\" time in JavaScript? My primary use case probably would be to pre-fetch or preload content.
Idle time:
Here is a simple script using JQuery that handles mousemove and keypress events. If the time expires, the page reload.