You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/micnews/deku-lazy-load

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/micnews/deku-lazy-load

v2.0.0+incompatible
Source
Go
Version published
Created
Source

deku-lazy-load

Lazyload component for deku.

Usage

npm install deku-lazy-load
import Lazyload from 'deku-lazy-load';

export default {
  render: function () {
    return (<Lazyload><img src='image.jpg'/></Lazyload>);
  }
}

Attributes

offset=[Number]

By default the children to the <Lazyload>-component will be loaded precisely when they enter the viewport, set a offset to load the children when they're about to be shown in the viewport.

width=[Number]

Width that the <Lazyload> component will have before the content has loaded

height=[Number]

Height that the <Lazyload> component will have before the content has loaded

FAQs

Package last updated on 15 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts