New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

omi-lazyload

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omi-lazyload

Omi / Lazyload. Simple Lazyload image / iframe.

latest
Source
npmnpm
Version
0.0.9
Version published
Maintainers
1
Created
Source

omi-lazyload

Simple Lazyload Library for Omi

Install

npm install omi-lazyload

Usage

import  { render, define, WeElement } from 'omi'
import 'omi-lazyload'

define('my-app', class extends WeElement {
  render() {
    return (
      <div class="main">
        <omi-lazyload>
          <img src="https://github.com/Tencent/omi/blob/master/assets/omi-logo.svg" />
        </omi-lazyload>
      </div>
    )
  }
})

render(<my-app />, 'body')

License

MIT © LeeHyungGeun

Keywords

lazyload

FAQs

Package last updated on 18 Nov 2018

Related posts