Stop polling server while page is hidden
Stop polling server while page is hidden

Use the page visibility API to stop pages from polling the server for
updates while hidden. This saves a small amount of CPU time.

Marfisc/panserver