RRajat Jain·Dec 23, 2022Page visibility API to the rescueI want to pause videos, image carousels, or animations when the user leaves the page. Page Visibility API lets you know when a user has left the page4 min read·rajatexplains.dev