clarifynl/responsive-pics

Native lazy loading option

Closed this issue · 2 comments

Is your feature request related to a problem? Please describe.
The option to use native lazy loading

Describe the solution you'd like
An option to use loading="lazy" instead of using a plugin such as Lazysizes or Lozad.

Additional context
It is widely supported in modern browser for images

Hi Jens,
Thanks for your PR! I had a look at it and it looks good, but I'd rather incorporate this in the existing lazyload parameter, with a third optional value native (or something like that) next to true or false.
I'll try to add this feature this week!

Added in version 1.6.3!
Just pass native as lazyload parameter instead of true