Beaver Builder Lazy Loading
A WordPress plugin to integrate lazy loading into Beaver Builder
★ 1stars
7composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/aberkow/bb-ll-plugin/archive/refs/heads/develop.zipAlso on Packagist as ucomm/bb-ll-plugin:
composer require ucomm/bb-ll-pluginFrom the readme
Beaver Builder Lazy Loading Plugin
The Beaver Builder Lazy Loading Plugin (BBLL) adds lazy loading functionality to Beaver Builder photo modules and row background images.
By default, Beaver Builder images are not lazy loaded. On many sites, this can be an issue for people on slow connections. BBLL does the following:
- Adds lazy loading options to the settings panels for row background images and photo modules
- Adds a new photo thumbnail size (bb-lazy-load) of 50px x 50px to be used as a placeholder
- Ensures browser compatibility by checking for the presence of window.IntersectionObserver
- Ensures no-js fallback by including tags for each photo
- Uses only public Beaver Builder hooks and filters
Usage
Local Development
To work on this project with docker and composer
- clone or fork the repo
- run composer install to install the composer dependencies. NB - You will need your own copy of the Beaver Builder plugin.
- run docker-compose up to create a development environment. The project will be available at localhost
- install wordpress and activate plugins
To work on this project without docker and composer...
- clone or fork the repo into an existing wordpress applicatio