#Changelog
- keep $srcsetUrls user-defined order + use smallest/largest instead first/last (by phlppschrr)
- added missing documentation to the "original" keyword
- added example with CroppableImage3
- moved documentation to GitHub wiki
- fix call to undefined function stringToArray (reported by phlppschrr)
- complete rewrite - read the docs!
- added srcsetUrls and $config->srcsetFallbackDataUri helpers
- replaced picturefill polyfill with ls.respimg.js
- updated JS assets (lazysizes: 4.0.0-RC3)
- disable loading the module in the admin
- better auto-adding of 'lazyload' class
- merge module JavaScript files
- fix PHP error on empty image sets.
- use "sizes" attribute instead "data-sizes" when module option is set to use "srcset". Bgset still gets "data-sizes".
- new module option to use "srcset" attribute instead "data-srcset" (requested by benbyford)
- new module option to disable adding "lazyload" class automatically
- "lazyload" class can be disabled by passing empty string or false as class name
- do not automatically add "lazyload" class if class was provided as a parameter
- flags can be passed as 4th parameter (currently only 'noFallbackImage' is available)
- added attrchange lazysize plugin
- better checking of whether the site has any srcset or bgset elements
- rewrite to use image methods instead of global functions (image->srcset(), image->bgset())
- image sets are stored in global $config->imagesets array (faster lookup)
- $image->srcset() doesn't render full image markup but only required attributes (just like $image->bgset)
- only "class" can be passed as additional attribute
- load scripts only if there's a lazysize element on the page (currently checking only for the required 'lazyload' class name)
- initial release