Hacker News new | ask | show | jobs
by iman 5891 days ago
The solution is to track mouse-movement/page-scrolling to check whether the user is interacting with the site.

Also, is it possible for javascript to check whether the site's tab and browser window is viewable and in the foreground?

1 comments

You can listen for the window blurring