1.0.2 • Published 5 years ago

vue-render-on-scroll v1.0.2

Weekly downloads
64
License
MIT
Repository
github
Last release
5 years ago

vue-render-on-scroll

vue-render-on-scroll - A Vue component that allows you to lazy-load components as they appear on screen. Great for passing google speed tests. It basicly adds v-if="false" to the content of the component as long as it did not yet apear on your screan.

install

npm i vue-render-on-scroll

or

yarn add vue-render-on-scroll

Usage

<vue-render-on-scroll>
  <div>This content will be loaded only when it enters viewport</div>
</vue-render-on-scroll>

js global

import vue-render-on-scroll from 'vue-render-on-scroll`,
Vue.component('vue-render-on-scroll', vue-render-on-scroll)

js local

import vue-render-on-scroll from 'vue-render-on-scroll`,
...
export default {
    components: {
      vue-render-on-scroll
    },
}
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago