sisl-source / magento2-pagebuilder-lazyload-images
Uses the modern browser loading="lazy" attribute on images added via page builder. Can be turned on and off per image as needed.
Package info
github.com/SISL-source/magento2-pagebuilder-lazyload-images
Type:magento2-module
pkg:composer/sisl-source/magento2-pagebuilder-lazyload-images
Requires
- php: ~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0
- magento/framework: >=103.0.4 <104
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Adds the native browser loading="lazy" attribute to images inserted through Magento 2
Page Builder — deferring off-screen images so they don't block the initial render. A small,
zero-config win for LCP and overall Core Web Vitals. Can be toggled per image.
Maintained fork of develodesign/magento-module-pagebuilder-lazyload-images, verified on
Magento 2.4.9 / PHP 8.4.
What changed vs upstream
- Added
requireto composer.json (php8.1–8.5,magento/framework >=103.0.4 <104). The original declared no requirements, so Composer would install it on any incompatible version silently.
Install
composer require sisl-source/magento2-pagebuilder-lazyload-images bin/magento setup:upgrade
Then edit any Page Builder image and toggle lazy loading in the image settings.
License
GPL-3.0 (upstream). Maintained by SISL — one of a set of revived, free, open-source Magento modules kept working on the latest releases.
Maintained by SISL
Maintained fork by SISL — Magento 2 development and modules. More self-hosted plugins: SISL Marketplace.