How to detect idle time in JavaScript elegantly?
原文可能无法访问了,如果运气好的话,你还能看到我们对原文的
存档
摘要
Is it possible to detect "idle" time in JavaScript? My primary use case probably would be to pre-fetch or preload content. Idle time: Period of user inactivity or without any CPU usage
欢迎在评论区写下你对这篇文章的看法。