mecha-cms / x.lazy
Native lazy loading for the web.
v1.1.0
2023-06-11 16:06 UTC
Requires
- mecha-cms/x.layout: ^2.0.0
README
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
.