visibility-state
There are 2 repositories under visibility-state topic.
muratgozel/visibility-state-listener
Cross-browser document visibility state detection library. Detects if user has switched to another window/tab or not.
iprodev/jquery.visibilityState
Visibility State Change for DOM Elements