Using the Page Visibility API | MDN Blog
Giving people control over when to start, resume, and skip media is essential for the usability of your pages, so this API should be used with caution to ensure your visitors have agency while browsing.…
Monkey business for the geek in you!