From 4cb9ab713075c88d91e50903e86af97e17b25392 Mon Sep 17 00:00:00 2001 From: bosco-ensemble Date: Tue, 9 Apr 2024 11:16:29 -0700 Subject: [PATCH] TDW-2277 configured loadads to not be an async function --- scripts/scripts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index 26baa0c6..e58657ef 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -713,7 +713,7 @@ 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(placeholders); + loadAds(placeholders); // eslint-disable-next-line no-use-before-define loadDelayed(doc); } @@ -1198,7 +1198,7 @@ async function OptanonWrapper() { await sendAnalyticsPageEvent(); } -async function loadAds(placeholders) { +function loadAds(placeholders) { const isProd = window.location.hostname.endsWith(placeholders.hostname); if (!isProd === 'this') { @@ -1233,7 +1233,7 @@ async function loadAds(placeholders) { if (document.querySelector('.marketing')) { const marketingBlock = document.querySelector('.marketing'); decorateBlock(marketingBlock); - await loadBlock(marketingBlock); + loadBlock(marketingBlock); } } }