UI Deploy

Curated, Short, Web UI Dev we Love.

How to use the Visibility API

Browser tabs have revolutionized the way we browse the Web, but they’ve given us an tricky problem: developers can’t tell if the tab their site is displayed in is being viewed.

To solve that problem we have the Visibility API, which allows us to test whether the browser content can be seen, and respond accordingly.

view source

Advertisement