liamfiddler / eleventy-plugin-lazyimages

Eleventy plugin that adds blurry placeholders & lazy loading to your images
MIT License
139 stars 29 forks source link

attribute only #36

Closed tcurdt closed 4 years ago

tcurdt commented 4 years ago

I don't really need all the features of the plugin. Especially as it does not seem to work with relative image paths. It would be great if there was a way to configure it to just add the attribute loading="lazy" on all images.

liamfiddler commented 4 years ago

👋 Hi @tcurdt !

I understand. This plugin isn't a good fit if that's what you're trying to accomplish. I'm currently working on another eleventy plugin that will address this need - I'll post a link here when it's released.

Also, keep an eye out for the next release of this plugin; it will have better support for relative paths 👍

liamfiddler commented 4 years ago

🚀 The other eleventy plugin I mentioned in my previous comment has now been released! Check it out on npm or jump straight to the loading="lazy" example.

AND I've also just released version 2.1 of this plugin which better handles relative file paths 😃