Tweak behaviour of navigateTo during document load