Skip to content
WordPress plugin for lazy loading
PHP JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src Changed AMP-endpoint-check Jul 1, 2019
.eslintrc.js
.gitignore
.gitmodules
README.md
gulpfile.js modernized repository structure and added support for automatic plugi… Jun 13, 2019
package-lock.json modernized repository structure and added support for automatic plugi… Jun 13, 2019
package.json
phpcs.xml

README.md

BJ Lazy Load Average time to resolve an issue WordPress Plugin Downloads WordPress Plugin Active Installs WordPress Plugin Rating

BJ Lazy Load is a WordPress plugin that improves site loading times by lazy loading images and iframes. The plugin is available through the plugin repository on wordpress.org.

Lazy loading makes your site load faster and saves bandwidth.

This plugin replaces all your post images, post thumbnails, gravatar images and content iframes with a placeholder and loads the content as it gets close to enter the browser window when the visitor scrolls the page. Also works with text widgets.

Since it works with iframes, it also covers embedded videoes from YouTube, Vimeo etc.

You can also lazy load other images and iframes in your theme, by using a simple filter.

Non-javascript visitors gets the original element in noscript.

Project setup

You will need npm to build the plugin.

git clone --recurse-submodules git+ssh://git@github.com/Angrycreative/bj-lazy-load.git
cd bj-lazy-load
npm i
gulp

Linting the code

PHP linting requires PHP Codesniffer to be installed.

# lint everything
npm run lint

# lint only PHP or only JavaScript
npm run lint:php
npm run lint:js
You can’t perform that action at this time.