Type
magento2-module
A Magento 2 module that adds support for lazy loading of images.
magento2-module
None
None
None
None
None
None
A Magento 2 module that adds support for lazy loading of images.
Magento\Catalog\Block\Product\Image
<img>
elements:
lazyload
classsrc
attribute to data-src
src
with transparent 1px x 1px image to avoid broken image links prior to lazy load (see product image templates as example)composer require fisheye/module-lazyload
php bin/magento module:enable Fisheye_Lazyload
php bin/magento setup:upgrade
Issues, forks and pull requests welcomed :)