This is a simple developer javascript module to assist with telling if the current tab is visible. Returns true or false.
This has been tested to work with most modern browsers
Simply include and use like so:
e.g.
vis();
This package is now available on npm
npm i visable