vue-lazy-component
Vue directive for lazy load components or elements, lazy load some components which not in the first screen can improve vue initialization performance.
Usage
;;Vue;
<!--Lazy load the element, 3s-->Chlid<!--Lazy load the component--><!--Lazy load 0s, the effect is like setTimeout(fn, 0) -->
Build Setup
# install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev# build the component to UMD jsnpm run build# build the dev pagenpm run build:demo