Tweak the behaviour of navigateTo during document load