Web Component: j-LazyImages


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-LazyImages

Good to know:

The component tries to find all <img elements with data-src="" attribute and if the element is visible then the component will update src="" attribute with the value from data-src="" attribute.

Configuration:

  • type {String} a type (position or offset) for obtaining of position (default: position)
  • offsetter {String} optional, a parent selector for obtaining of position
  • customscrollbar {Boolean} have you used a custom scrollbar? (default: false)

Author