Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

plugin-lazyload

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plugin-lazyload

图片懒加载

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

lazyload

Image lazy loaded

Install

npm install plugin-lazyload --save-dev

Example

<body id="app">
    <div>
        <img class="lazy-image" data-src="1.png"/>
    </div>
</body>
<script>
new LazyLoad([options])
</script>

Options

Namedefaultdescription
lazyLoadingClasslazy-image需要懒加载图片的class
lazyStatusLoadingClasslazy-loading懒加载图片加载中的class
lazyStatusLoadedClasslazy-loaded懒加载图片加载完成后的class
lazyScreenMount0提前加载几屏, 可以是小数

Methods

  • stop
  • start

Keywords

lazyload

FAQs

Package last updated on 08 Aug 2017

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