Skip to content

Commit

Permalink
feat: change preload
Browse files Browse the repository at this point in the history
  • Loading branch information
twhite313 committed Jan 14, 2025
1 parent 49dc90b commit 6a9c47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eds/blocks/hero/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function decorate(block) {
preloadLink.href = img.src;
preloadLink.rel = 'preload';
preloadLink.as = 'image';
document.head.appendChild(preloadLink);
document.querySelector('.hero-container').insertBefore(preloadLink, document.querySelector('.hero-container').firstChild);
});
} else {
imgCollection.forEach((img) => {
Expand Down

0 comments on commit 6a9c47f

Please sign in to comment.