mecha-cms/x.lazy

Native lazy loading for the web.

v1.1.0 2023-06-11 16:06 UTC

This package is auto-updated.

Last update: 2024-10-11 19:12:04 UTC


README

Code Size

Starting with Chrome 76, you’ll be able to use the new loading attribute to lazy-load resources without the need to write custom lazy-loading code or use a separate JavaScript library. Please note that only images that are below the device viewport by the calculated distance load lazily. All images above the viewport, regardless of whether they’re immediately visible, load normally.

This extension helps you to automatically add the loading attribute with the value of lazy.