Oh, sorry, caught by the name of the variable, it implies it would only happen once.

Perhaps you should rename this variable then.  Something like `updateEnabled` and change the comment to state that it's only true when the page is gaining visibility?