0.0.2 • Published 6 years ago
vue-component-lazy v0.0.2
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'))