From b46b1dd7e7b05cd52b450d85cc04d7573e5d30c7 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 15 Apr 2018 22:19:13 -0600 Subject: [PATCH] fix race condition in fragment jumper - sometimes the built-in jump wins out; jump again after delay to be sure --- src/js/02-fragment-jumper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/02-fragment-jumper.js b/src/js/02-fragment-jumper.js index e324227..186a193 100644 --- a/src/js/02-fragment-jumper.js +++ b/src/js/02-fragment-jumper.js @@ -24,6 +24,7 @@ var hash, target if ((hash = window.location.hash) && (target = document.getElementById(hash.slice(1)))) { jumpToAnchor.bind(target)() + setTimeout(jumpToAnchor.bind(target), 0) } window.removeEventListener('load', jumpOnLoad) }) -- 2.11.0