Page Visibility API

на сайте с 13 сентября 2022, 19:28
The Page Visibility API provides events you can watch for to know when a document becomes visible or hidden, as well as features to look at the current visibility state of the page.