0.1.2 • Published 6 years ago

@startselect/vue-lazyloader v0.1.2

Weekly downloads
9
License
MIT
Repository
-
Last release
6 years ago

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
});
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago