Maybe check for page reload by testing for absence
This seems to work locally.