Don't Close the TabInterminable Telephone Co.

Keeping a tab awake

Can you keep a hidden tab awake?

Browsers put hidden tabs to sleep, which is sensible until your game is about hidden tabs. So before building this one, we measured how reliably a server could reach a tab nobody was looking at.

What browsers do

Chrome slows a hidden page's timers in stages. Once a page has been hidden for over five minutes and has been silent for at least 30 seconds, chained timers can be checked as little as once a minute. A silent audio track doesn't count as sound. Beyond throttling, browsers can also freeze or discard a page entirely, at which point nothing in it runs.

So a timer in the page can't be trusted to ring on time. We keep the schedule on the server instead, and send each call two ways: over a WebSocket, and as a Web Push notification, which is delivered to a service worker even if the page can't respond.

What we tested

We sent real calls to real Chrome and Edge, in hidden tabs, on one Windows laptop that was plugged in with the screen on.

What went wrong

The results above leave out the most interesting part.

What this doesn't prove

This was one laptop, on mains power, with scripted browsers rather than people. Zero misses in 1,000 calls still fits a true reliability as low as about 99.7%. We didn't test battery power, Energy Saver or Macs, and browsers change this behaviour over time.

If you need a hidden tab to stay useful

You can try the result, which is a game about exactly this: Don't Close the Tab.