diff --git a/jekyll-assets/_includes/scripts.html b/jekyll-assets/_includes/scripts.html index 196f3d1c98..f8d6931c2e 100644 --- a/jekyll-assets/_includes/scripts.html +++ b/jekyll-assets/_includes/scripts.html @@ -47,6 +47,7 @@ // if found, scroll to that id hash console.log("Scrolling to ", selector); var target = document.querySelector(selector); + waitForElementToDisplay(selector, 10, 500); if (target) { var bbox = target.getBoundingClientRect(); var myid = target.getAttribute("id");