Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhav sasulkar committed Sep 16, 2024
1 parent 9a76ab1 commit e153590
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand All @@ -705,6 +705,7 @@ function loadDelayed() {
}

async function loadPage() {
loadHeader(document.querySelector("header"));
await loadingCustomCss();
await loadEager(document);
await loadLazy(document);
Expand Down

0 comments on commit e153590

Please sign in to comment.