diff --git a/scripts/aem.js b/scripts/aem.js index fe25c64..e134208 100644 --- a/scripts/aem.js +++ b/scripts/aem.js @@ -506,6 +506,9 @@ function updateSectionsStatus(main) { } else { section.dataset.sectionStatus = 'loaded'; section.style.display = null; + if (i === 0 && sampleRUM.enhance) { + sampleRUM.enhance(); + } } } } diff --git a/scripts/scripts.js b/scripts/scripts.js index 36555e5..caea74f 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -1,5 +1,4 @@ import { - sampleRUM, buildBlock, loadHeader, loadFooter, @@ -110,8 +109,6 @@ async function loadLazy(doc) { loadCSS(`${window.hlx.codeBasePath}/styles/lazy-styles.css`); loadFonts(); - - sampleRUM.enhance(); } /**