Skip to content

Commit

Permalink
Moved appending the .appear class to the body until after the LCP is …
Browse files Browse the repository at this point in the history
…finished to prevent a checkout error from occuring
  • Loading branch information
pchoate-adobe committed Oct 11, 2024
1 parent 71592b2 commit b3f7677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b3f7677

Please sign in to comment.