Uses the modern browser loading="lazy" attribute on images added via page builder. Can be turned on and off per image as needed.
- Do not turn on for images loaded above the fold, this causes unnecessary layout shift (CLS).
composer require develodesign/magento-module-pagebuilder-lazyload-images
bin/magento module:enable Develodesign_PagebuilderLazyLoadImages
bin/magento setup:upgrade
bin/magento cache:flush
- Unzip the zip file in
app/code/Develodesign/PagebuilderLazyloadImages
- Enable the module by running
php bin/magento module:enable Develodesign_PagebuilderLazyloadImages
- Apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
- = in production please use the option
--keep-generated