Skip to content

Commit 56fde6c

Browse files
author
Timon de Groot
committed
Add loading="lazy" to image.phtml
1 parent 0bd7a87 commit 56fde6c

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/image.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<img class="photo image <?= $escaper->escapeHtmlAttr($block->getClass()) ?>"
1313
<?= $escaper->escapeHtml($block->getCustomAttributes()) ?>
1414
src="<?= $escaper->escapeUrl($block->getImageUrl()) ?>"
15+
loading="lazy"
1516
width="<?= $escaper->escapeHtmlAttr($block->getWidth()) ?>"
1617
height="<?= $escaper->escapeHtmlAttr($block->getHeight()) ?>"
1718
alt="<?= /* @noEscape */ $block->stripTags($block->getLabel(), null, true) ?>" />

0 commit comments

Comments
 (0)