Skip to content

Commit

Permalink
Experimentation Plugin must load before Drop-ins initialization (#193)
Browse files Browse the repository at this point in the history
* experimentation must load before dropins initialization

* Update scripts.js
  • Loading branch information
fnhipster authored Nov 11, 2024
1 parent ec6aea5 commit 6f82605
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 @@ -177,6 +177,8 @@ async function loadEager(doc) {
await runEager(document, { audiences: AUDIENCES }, pluginContext);
}

await initializeDropins();

window.adobeDataLayer = window.adobeDataLayer || [];

let pageType = 'CMS';
Expand Down Expand Up @@ -368,7 +370,6 @@ export function getConsent(topic) {
}

async function loadPage() {
await initializeDropins();
await loadEager(document);
await loadLazy(document);
loadDelayed();
Expand Down

0 comments on commit 6f82605

Please sign in to comment.