Lorti / dominant-colors-lazy-loading-wordpress-plugin

This plugin allows you to lazy load your images while showing the dominant color of each image as a placeholder – like Pinterest or Google Images.
https://wordpress.org/plugins/dominant-colors-lazy-loading/
GNU General Public License v2.0
95 stars 10 forks source link

Switch to using lazysizes #26

Closed curtchan closed 5 years ago

curtchan commented 5 years ago

Lazysizes is a Google-suggested library for lazyloading, tested it on non-WP website and the usage is very simple, you just have to set proper class on element that you want to lazyload and it will work out of the box (takes care of both data-src and data-srcset). So it shouldn't be hard to rewrite to make use of it.

https://github.com/aFarkas/lazysizes

Lorti commented 5 years ago

What problems that you have with the Dominant Colors Lazy Loading Wordpress Plugin does this solve?