If document is not visible, reload page