Have you ever considered extending the plugin to include the other major functionality that the lazysizes script seems to offer, namely to automatically calculate the sizes attribute for responsive images?
Most WordPress themes and even WordPress itself do a very poor job of providing good sizes markup for images and it can make a massive performance difference to page loading times.
I see quite a few WP plugins make use of the lazy loading functionality of lazysizes but none of the sizes calculation ability. On the face of it, it looks like something like your plugin which can process complete markup could provide a good foundation for adding or replacing sizes markup.
Probably outside the scope of what you had in mind when you built the plugin, but I find it interesting that no one has tried to integrate this given the need for it and ever growing focus on performance.
- The topic ‘Sizes attribute calculations’ is closed to new replies.