visibility.js

Wrapper for the Page Visibility API

polyfillhtml5visibility

https://github.com/ai/visibilityjs