Skip to content

Commit 1a79775

Browse files
author
Timon de Groot
committed
Add loading="lazy" to image_with_borders.phtml
1 parent c00cef4 commit 1a79775

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<img class="<?= $escaper->escapeHtmlAttr($block->getClass()) ?>"
1717
<?= $escaper->escapeHtmlAttr($block->getCustomAttributes()) ?>
1818
src="<?= $escaper->escapeUrl($block->getImageUrl()) ?>"
19+
loading="lazy"
1920
max-width="<?= $escaper->escapeHtmlAttr($block->getWidth()) ?>"
2021
max-height="<?= $escaper->escapeHtmlAttr($block->getHeight()) ?>"
2122
alt="<?= /* @noEscape */ $block->stripTags($block->getLabel(), null, true) ?>"/></span>

0 commit comments

Comments
 (0)