From f9dbb14eb98324e703096d40e285c013054a2c6c Mon Sep 17 00:00:00 2001 From: "Carlos A. Cabrera" <316104+fnhipster@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:52:22 -0600 Subject: [PATCH] Fix import safari (#219) * Disable bfcache * Update scripts.js --- scripts/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index 50649acff..d23b61ec3 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -187,7 +187,7 @@ async function loadEager(doc) { pageType = 'Product'; // initialize pdp - import('./initializers/pdp.js'); + await import('./initializers/pdp.js'); // Preload PDP Dropins assets preloadFile('/scripts/__dropins__/storefront-pdp/api.js', 'script');