0.0.2 • Published 6 years ago

vue-component-lazy v0.0.2

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

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'))