From 9717da8635dc5914798536d1b7893cacdb8b84bd Mon Sep 17 00:00:00 2001 From: bosco-ensemble Date: Tue, 9 Apr 2024 09:01:27 -0700 Subject: [PATCH] TDW-2277 load in ads 1 second after loadlazy --- scripts/scripts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index 6eed0509..963aef33 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -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); + }, 1000); } /**