How to detect page visibility in web applications


You are building a web application and need the application to pause whenever the user stops interacting with the page;