Don't globalRefresh when the window is blurred, and do refresh immediately when the window is later focused