From b3f7677c361daa3d1c1196e35a0d1f4f3dbe4869 Mon Sep 17 00:00:00 2001 From: Preston Choate Date: Fri, 11 Oct 2024 11:35:44 -0400 Subject: [PATCH] Moved appending the .appear class to the body until after the LCP is finished to prevent a checkout error from occuring --- scripts/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index 0bc2d2b5da..5cfa5f39fc 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -296,8 +296,8 @@ async function loadEager(doc) { await applyTemplates(doc); // Load LCP blocks - document.body.classList.add('appear'); await loadSection(main.querySelector('.section'), waitForFirstImage); + document.body.classList.add('appear'); } events.emit('eds/lcp', true);