Michael is a contributor to Chrome Developers
Fortunately, the new Page Visibility API lets your app discover if it's visible or not.
Michael Mahemoff