Skip to content

Latest commit

 

History

History
70 lines (38 loc) · 2.04 KB

CHANGELOG.md

File metadata and controls

70 lines (38 loc) · 2.04 KB

#Changelog

0.1.2 (2017-09-0)

  • 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

0.1.1 (2017-09-01)

  • fix call to undefined function stringToArray (reported by phlppschrr)

0.1.0 (2017-08-31)

  • 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

0.0.7 (2016-07-26)

  • better auto-adding of 'lazyload' class
  • merge module JavaScript files

0.0.6 (2016-05-25)

  • fix PHP error on empty image sets.

0.0.5 (2016-05-21)

  • use "sizes" attribute instead "data-sizes" when module option is set to use "srcset". Bgset still gets "data-sizes".

0.0.4 (2016-05-14)

  • 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

0.0.3 (2016-05-12)

  • 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

0.0.2 (2016-04-11)

  • 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)

0.0.1 (2016-04-10)

  • initial release