Skip to content

Commit

Permalink
Merge pull request #704 from hlxsites/image-fix
Browse files Browse the repository at this point in the history
chore: fix default image loading
  • Loading branch information
davenichols-DHLS authored Jan 25, 2024
2 parents cce4d51 + a742b82 commit 0b46d71
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 @@ -88,7 +88,7 @@ export function createOptimizedS7Picture(src, alt = '', eager = false, breakpoin
return picture;
}
return img({
src: 'src',
src,
alt,
loading: eager ? 'eager' : 'lazy',
});
Expand Down

0 comments on commit 0b46d71

Please sign in to comment.