Track the visibility of a page using Javascript
Introduction
Ever wondered how platforms such as Netflix play a short clip of a movie when we are in the tab and stop playing it when we switch the tab? There are two ways to achieve the functionality
1) Using onblur and onfocus
2) Using page visibil...
rookiecoderlok.hashnode.dev2 min read