Lazy load images in posts and pages.
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.
js
lib
.gitignore
README.md
lazy-load.php

README.md

WP Lazy Load

Requires WP 4.4+

A simple lazy load solution for pages and posts.

Usage

  • Activate Plugin
  • Win

Lazy Loading

Images are the key cause of large page sizes. They are often loaded even when not needed causing page sizes to be bigger than they need to be. This plugin loads images only when the user scrolls to it on the site. This plugin can reduce page load times and bandwidth usage.

About the plugin

The plugin filters the_content on pages and posts; changing the output of the img tag to work with a third party script.

http://afarkas.github.io/lazysizes/

The plugin only works on the_content and does not work on all images across the site. This is to keep things simple and is usually the main area in which theme developers do not have control over the output.