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

欢迎在评论区写下你对这篇文章的看法。

评论

首页 - Wiki
Copyright © 2011-2024 iteam. Current version is 2.125.0. UTC+08:00, 2024-05-08 04:25
浙ICP备14020137号-1 $访客地图$