From e1535903eb4794d1fe75d110946b8cd59db59424 Mon Sep 17 00:00:00 2001 From: Vaibhav sasulkar Date: Mon, 16 Sep 2024 16:10:35 +0530 Subject: [PATCH] done --- scripts/scripts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index 7dc2e7475b..822b0b6c08 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -681,7 +681,7 @@ async function loadLazy(doc) { const element = hash ? doc.getElementById(hash.substring(1)) : false; if (hash && element) element.scrollIntoView(); - loadHeader(doc.querySelector("header")); + /* loadHeader(doc.querySelector("header")); */ loadFooter(doc.querySelector("footer")); loadCSS(`${window.hlx.codeBasePath}/styles/lazy-styles.css`); @@ -705,6 +705,7 @@ function loadDelayed() { } async function loadPage() { + loadHeader(document.querySelector("header")); await loadingCustomCss(); await loadEager(document); await loadLazy(document);