ucomm / bb-ll-plugin
A plugin to enable lazy loading images with Beaver Builder.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 17
Type:wordpress-plugin
Requires (Dev)
- composer/installers: ~1.0
- johnpbloch/wordpress: @stable
- ucomm/bb-plugin: dev-master
- ucomm/castor: dev-master
- wpackagist-plugin/query-monitor: ^3.3.6
- wpackagist-plugin/regenerate-thumbnails: dev-trunk
- wpackagist-plugin/wordpress-importer: *
- wpackagist-theme/twentynineteen: ^1.4
- dev-develop
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/engine.io-and-browser-sync-6.2.1
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/copy-props-2.0.5
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/postcss-7.0.36
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.7
- dev-dependabot/npm_and_yarn/acorn-5.7.4
- dev-master
- dev-feature/gallery
This package is not auto-updated.
Last update: 2024-11-15 21:23:51 UTC
README
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
<noscript>
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 application
- run
npm install
to install dependencies - run
gulp watch
to watch/transpile js and sass files. processed files should be available in/build
git flow
You can use git flow to aid in creating branches. Git flow encourages a branching git strategy with several types of branches
- master (for production)
- develop (pre-production)
- feature/* (new features)
- hotfix/* (bug fixes)
- release/* (tagged releases merging into master)
If you don't want to use git flow, that's ok. Please create sensible branch names that can be pulled to develop
TODO
- add lazy loading to other module types (e.g. carousels)
- try to compress placeholder images even more