New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@startselect/vue-lazyloader

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startselect/vue-lazyloader

Lazyloader using vue

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
80
decreased by-56.99%
Maintainers
1
Weekly downloads
 
Created
Source

How to register this package in Vue?

First register this package within your vue instance like this:

import VueLazyLoader from '@startselect/vue-lazyloader';

Vue.use(VueLazyLoader);

Update the image tags

All the images that should be lazyloaded should be updated like this:

<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-lazy-src="/original-image.png">

You can change data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== to anything else. We did this to load a blank image before this image becomes visible in the viewport.

Options

Available options:

Vue.use(VueLazyLoader, {
    offset: 150
});

Keywords

FAQs

Package last updated on 12 Oct 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc