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

上拉加载更多

Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

lazyload

Lazy load images,only load visible area of the window

Usage

Need for lazy load images, add 'lazy-image' class, and add data-src

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-imageneed lazy iamge class
lazyStatusLoadingClasslazy-loadinglazy loading class
lazyStatusLoadedClasslazy-loadedlazy loaded class

Methods

  • stop stop the plugin
  • start start the plugin

Keywords

pull

FAQs

Package last updated on 29 Jun 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