How to Detect If a User Is Viewing Your Web App | Page Visibility API in JavaScript

preview_player
Показать описание
With the Page Visibility API your web application can know whether a user is viewing your page or not. This opens the door for some interesting user experiences.

The Page Visibility API is a small but powerful set of visibility states for the window's document object that can enable applications to optimize performance in the browser. This makes for a smoother browsing experience for users.

✨ Who I am:

I'm Ijemma, a frontend software engineer currently working in New York City. I make videos on all things JavaScript and, more broadly, frontend web development.
Рекомендации по теме
Комментарии
Автор

need more such videos, plz start uploading again

sparshgupta
Автор

Hello .
Great Tutorial.

please share code for reading as well via github.

irfanabbasi
visit shbcf.ru