Skip to content

Improves extensibility; 1 internal function name change

Pre-release
Pre-release
Compare
Choose a tag to compare
@lilith lilith released this 07 Jan 00:59
· 109 commits to master since this release

[deprecated - use 0.4.1 - images can fail to load]

  • Make 'data.element' available to slimmage.adjustImageParameters, so plugins have more information.
  • Add window.slimmage.beforeAdjustSrc callback function - this allows users to inject behavior between noscript parsing and img.src edits. (say, to offer alternate criteria, like a css class, for involving images).
  • Replace adjustImageSrcWithWidth with getImageInfo, make adjustImageSrc responsible for more. Simplifies certain kinds of extension, such as background image support, as the size calculation can be reused.