Skip to content

Latest commit

 

History

History
9 lines (4 loc) · 522 Bytes

README.md

File metadata and controls

9 lines (4 loc) · 522 Bytes

#lazysizes attribute change / re-initialization extension

In case you are changing the data-src/data-srcset attributes of already transformed lazyload elements dynamically, you normally also must re-add the lazyload class to the element.

This extension automatically detects changes to your data-* attributes and adds the class for you.

In case you are using React you can also try the following react-lazysizes module as another possible alternative.