hmphu / m2-lazyload-native
Implement the native lazy load attribute 'loading' for all images
Package info
github.com/hmphu/m2-lazyload-native
Type:magento2-module
pkg:composer/hmphu/m2-lazyload-native
dev-master
2020-06-07 10:34 UTC
Requires
- php: ~7.1.3||~7.2.0||~7.3.0||~7.4.0
- magento/framework: *
- magento/module-store: *
This package is auto-updated.
Last update: 2026-03-07 23:21:57 UTC
README
This is Magento 2 module implements the loading attribute for lazyloading images. Details about this can be read from here: https://web.dev/native-lazy-loading/
Installation Guide
Install by composer
composer require hmphu/m2-lazyload-native:dev-master
bin/magento module:enable HMP_LazyloadNative
bin/magento setup:upgrade
Install download package
- Go to https://github.com/hmphu/m2-lazyload-native
- Download this module "Clone or download -> Download Zip"
- Unzip two modules in the folder app\code\HMP\LazyloadNative
- Run commands:
bin/magento module:enable HMP_LazyloadNative
bin/magento setup:upgrade
General Settings
To enable the module please go to
Stores -> Configuration -> Advanced -> System -> Lazyload Image (native method)