diff --git a/head.html b/head.html index 365f65e3..2e8862b8 100644 --- a/head.html +++ b/head.html @@ -1,8 +1,8 @@ - - - + + + - + diff --git a/scripts/init.js b/scripts/init.js index ca031dd7..f939dc0b 100644 --- a/scripts/init.js +++ b/scripts/init.js @@ -1,5 +1,5 @@ import ComponentLoader from './component-loader.js'; -import { config, debounce, getBreakPoint } from './libs.js'; +import { config, debounce, eagerImage, getBreakPoint } from './libs.js'; export function retriveDataFrom(blocks) { return blocks.map((block) => { @@ -33,6 +33,8 @@ function lcpPriority() { return window.raqnLCP; } +eagerImage(document, 2); + export async function init(node = document) { let blocks = Array.from(node.querySelectorAll('[class]:not([class^=raqn]'));