Skip to content

Commit

Permalink
TDW-2277 load in ads 1 second after loadlazy
Browse files Browse the repository at this point in the history
  • Loading branch information
bosco-ensemble committed Apr 9, 2024
1 parent bf0cb6e commit 9717da8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,9 @@ async function loadLazy(doc) {
doc.querySelectorAll('div:not([class]):not([id]):empty').forEach((empty) => empty.remove());

// eslint-disable-next-line no-use-before-define
await loadAds(doc);
window.setTimeout(async () => {
await loadAds(doc);

Check failure on line 1075 in scripts/scripts.js

View workflow job for this annotation

GitHub Actions / build

'loadAds' was used before it was defined
}, 1000);
}

/**
Expand Down

0 comments on commit 9717da8

Please sign in to comment.