Home

Awesome

Magento 2 Lazy Loading extension

Lazy Loading module allows speeding up the site load by showing the image only at the demanding time. Lazy Loading improves site performance and reduces bounce rate due to slow loading.

1. Documentation

2. FAQ

Q: I got an error: Mageplaza_Core has been already defined

A: Read solution here

Q: Which pages to apply Lazy Loading?

A: Lazy Loading can be applied for images on many popular pages including Category Page, Product Detail Page, CMS Page, Checkout Page, Search Page, or Related/Cross-sell/ Up-sell product blocks.

Q: How many types are there in loading transaction?

A: Loading transaction has two main types: loading icon and lightweight placeholders. Loading icon enables you to upload any image to make the loading icon (recommended size 64x64px). And, you can select 3 types with placeholder which are transparent, blurred, and low-resolution.

Q: What does the loading threshold mean?

A: Threshold is used to make the images load easier. You can use the threshold parameter (px). For example, if the threshold is 200px, the image load appears within 200px far from the viewport.

3. How to install Lazy Loading extension for Magento 2

Install via composer (recommend). Run the following command in Magento 2 root folder:

composer require mageplaza/module-lazy-loading
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

4. Highlight Features

Load images by demand

Hold up loading out-of-view images

This feature makes the images loaded only in the parts which users are viewing in the entire page. Other images will not load until the users scroll to the next part of the page. Similarly, images will load as users are viewing.

Optimize page loading

Lazy Loading significantly speeds up the page loading, especially for long websites. You no longer have to wait for a long time to open a page as all images of the page will not load at the same time. This function makes it easier for visitors to view your page. Therefore, it reduces the bounce rate and increases conversions.

Applicable to the most popular pages

It is flexible and useful to apply Lazy Loading to the most used pages any online store site, which usually include almost images of products.

Some mostly-used pages are:

Multiple Lazy Loading effects

The extension provides the store admin with several loading effects that can be adapted to the pages easily.

Placeholders

Loading icon

Adjust loading point time

In the Magento Default, once the user opens a page, images of the page will load immediately. With Lazy Loading, you can make specific images to load earlier by using the threshold parameter.

For instance, if you set the threshold value is 200px, then the image load that appears within 200px will be far from the user’s visible area.

This feature keeps the constancy of the image appearance as well as saves the bandwidth.

Remove Lazy Loading anytime

If you don’t want to use Lazy Loading anymore, you can exclude it in different ways:

5. Full Features List

For store admins

For customers

6. User Guide

6.1 How to use

Process Lazy Load with the icon

Process Lazy Loading with placeholder

6.2 How to configure

Login to the Magento Admin, go to Stores > Settings > Configuration > Mageplaza Extensions > Lazy Loading.

General configuration

<img class = "downloadable-product" src = "lifelong.jpg">. Images of the "downloadable-product" class will not apply lazy loading.

<img title = "lifelong" src = "download.jpg"> or <img name = "lifelong" src = "product.jpg">. When filling in "lifelong", this image will not apply lazy loading.