Adds fix for pausing updates while the tab or window is hidden.