Page Visibility API
на сайте с September 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.