Is it possible to detect \"idle\" time in JavaScript?
My primary use case probably would be to pre-fetch or preload content.
Idle time:
I have created a small lib that does this a year ago:
https://github.com/shawnmclean/Idle.js
Description:
Tiny javascript library to report activity of user in the browser (away, idle, not looking at webpage, in a different tab, etc). that is independent of any other javascript libraries such as jquery.
Visual Studio users can get it from NuGet by: PM> Install-Package Idle.js