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; for example, the user opens up another browser tab or minimizes the browser itself. Example scenarios include games where you want to automatically pause the action or video/chat applications where you'd like to raise a notification. The main advantage of … Continue reading How to detect page visibility in web applications

Tips for printing from web applications


Web developers usually have to format user content for printing; for example, accountants might want physical copies of online ledgers while teachers might need lecture note printouts. The challenge lies in getting consistent print output across a range of browsers and their never-ending stream of subtle nuances. This post approaches printing from three viewpoints: tooling, JavaScript … Continue reading Tips for printing from web applications