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-04-11 18:02:27 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.