PHPackages                             landofcoder/module-lazyload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. landofcoder/module-lazyload

ActiveMagento2-module[Image &amp; Media](/categories/media)

landofcoder/module-lazyload
===========================

A Magento 2 module that adds support for lazy loading of images.

1.0.0(5y ago)13.7k—10%MITPHP

Since Mar 30Pushed 5y agoCompare

[ Source](https://github.com/landofcoder/module-lazyload)[ Packagist](https://packagist.org/packages/landofcoder/module-lazyload)[ RSS](/packages/landofcoder-module-lazyload/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Lof\_Lazyload
=============

[](#lof_lazyload)

Overview
--------

[](#overview)

A Magento 2 module that adds support for lazy loading of images.

Features
--------

[](#features)

- Utilises the [lazysizes](https://github.com/aFarkas/lazysizes) script to add lazy load support for images
- Lazy loading is automatically applied to all\* product images
    - \*Any image created via `Magento\Catalog\Block\Product\Image`
    - This includes:
        - Product listing (category, search, product list widget)
        - Product relations (related, upsell, crosssell)
        - Product comparison
        - Recently viewed
        - Cart thumbnails
        - Wishlist
- Support can be added to any further images by adding the following to `` elements:
    - Add `lazyload` class
    - Change the `src` attribute to `data-src`
    - Optional: add a dummy `src` with transparent 1px x 1px image to avoid broken image links prior to lazy load (see product image templates as example)
- Preloading
    - Preloading means the media source will be loaded even if not in the viewport such as megamenu icons/images.
    - The `preload_elements` layout argument allows you to specify selectors of which elements can be preloaded. This can be configured per page.
    - Use the `lazypreload` class on element(s) you wish to preload.

Compatibility
-------------

[](#compatibility)

- Magento Community Edition / Enterprise Edition 2.2.x (see older releases for 2.0 / 2.1 support)
- Supports Magento 2 Full Page Cache (including Varnish)

Installation
------------

[](#installation)

```
composer require landofcoder/module-lazyload
php bin/magento module:enable Lof_Lazyload
php bin/magento setup:upgrade

```

Contributing
------------

[](#contributing)

Issues, forks and pull requests welcomed :)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1921d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db448e930f6e4cb8da91a337027d8b11645732d24ede2a46c5844967a395ca1e?d=identicon)[landofcoder](/maintainers/landofcoder)

---

Top Contributors

[![landofcoder](https://avatars.githubusercontent.com/u/194975?v=4)](https://github.com/landofcoder "landofcoder (1 commits)")

---

Tags

lazyload-imagesmagento2magento2-extensionmagento2-extension-free

### Embed Badge

![Health badge](/badges/landofcoder-module-lazyload/health.svg)

```
[![Health](https://phpackages.com/badges/landofcoder-module-lazyload/health.svg)](https://phpackages.com/packages/landofcoder-module-lazyload)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8064.7M49](/packages/smile-elasticsuite)[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[yireo/magento2-next-gen-images

Magento 2 module to add NextGen images support to the Magento frontend

471.2M2](/packages/yireo-magento2-next-gen-images)[smile/module-product-label

Smile - Extension of Magento2 to be able to contribute images associated to product attribute values.

58101.5k](/packages/smile-module-product-label)[emico/m2-attributelanding

Attribute landing pages for Magento 2

17263.2k10](/packages/emico-m2-attributelanding)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

3017.9k](/packages/mage-os-module-automatic-translation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
