Download the PHP package fisheye/module-lazyload without Composer
On this page you can find all versions of the php package fisheye/module-lazyload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fisheye/module-lazyload
More information about fisheye/module-lazyload
Files in fisheye/module-lazyload
Download fisheye/module-lazyload
More information about fisheye/module-lazyload
Files in fisheye/module-lazyload
Vendor fisheye
Package module-lazyload
Short Description A Magento 2 module that adds support for lazy loading of images.
License MIT
Package module-lazyload
Short Description A Magento 2 module that adds support for lazy loading of images.
License MIT
Please rate this library. Is it a good library?
Informations about the package module-lazyload
Fisheye_Lazyload
Overview
A Magento 2 module that adds support for lazy loading of images.
Features
- Utilises the 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
- *Any image created via
- Support can be added to any further images by adding the following to
<img>
elements:- Add
lazyload
class - Change the
src
attribute todata-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) - Optional: add
loading="lazy"
to enable native browser lazy-loading where possible. Note that this is not true native lazy-loading, as thelazysizes
script and itsnative-loading
plug-in need to be run, so there's still a dependency on JavaScript before affected images will show.
- Add
- 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
- Magento Community Edition / Enterprise Edition 2.4.x (see older releases for 2.0 - 2.3 support)
- Supports Magento 2 Full Page Cache (including Varnish)
Installation
Contributing
Issues, forks and pull requests welcomed :)
All versions of module-lazyload with dependencies
PHP Build Version
Package Version
The package fisheye/module-lazyload contains the following files
Loading the files please wait ....