Skip to content

Commit

Permalink
TDW-2277 called load ads function in load lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
bosco-ensemble committed Apr 9, 2024
1 parent 92f1ef9 commit bf0cb6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,6 @@ async function loadPage(doc) {
// eslint-disable-next-line no-use-before-define
await loadLazy(doc);
// eslint-disable-next-line no-use-before-define
await loadAds(doc);
// eslint-disable-next-line no-use-before-define
loadDelayed(doc);
}

Expand Down Expand Up @@ -1071,6 +1069,9 @@ async function loadLazy(doc) {
addFavIcon(`${window.hlx.codeBasePath}/styles/favicon.ico`);

doc.querySelectorAll('div:not([class]):not([id]):empty').forEach((empty) => empty.remove());

// eslint-disable-next-line no-use-before-define
await loadAds(doc);
}

/**
Expand Down

0 comments on commit bf0cb6e

Please sign in to comment.