vue-component-lazy
v0.0.2
Published
A lightweight libraries using IntersectionObserver for lazyload your Components, Images or anything.
Downloads
7
Maintainers
Readme
vue-component-lazy
A lightweight libraries for lazyload your Components, Images or anything.
Main function
- Lazyload your Components using IntersectionObserver
- Lazyload your Components and loading components with dynamic imports once time
Lazyload your Components using IntersectionObserver
Load content that is visible on the screen.
import LazyComponent from 'vue-component-lazy'
import Component from './Component'
Vue.component("component", LazyComponent(Component))
Lazyload your Components and loading components with dynamic imports once time
import LazyComponent from 'vue-component-lazy'
Vue.component("component", LazyComponent(() => import('./Component'))