Stop pinging `get_active_notifications` after some time without user interaction
From #4101 (comment 284694), @mikael-s and @magiraud :
is it possible to detect such interaction ?
Yes, with
document.hidden
.
Excellent. For example, after 60 minutes within document.hidden
, we stop such pinging. And... we should resume it as soon as the tab is not hidden? Ideally right when we resume that ?