👀 Detect when your site is visible to users
You can detect whether a user is looking at your page or is currently on another tab using onvisibilitychange and visibilityState This is a super useful feature and can help ensure users do not miss out on important content when they move to a different tab. For example you can use it to pause a … Read more