Web UI component: j-LazyLoad


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-LazyLoad

  • easy usage
  • can be used for everything
  • vertically position only

Configuration:

Example: data-jc-config="selector:img;container:.photos;exec:function_name"

  • container {String} a selector as a scrolling container (default: window)
  • selector {String} (important) selector for lazy elements
  • exec {String} a link to method, executed if the lazy element is visible
  • offset {Number} this value extends the size of scrolling area top/bottom. (default: 50)

Methods:

  • instance.refresh() refreshes current state

Author