Static GitHub Issues

[2027] Async load component?

prev: Customizing Buefy in nuxt.js
next: Velocity.js doesn't work as ssr: false plugin, how to use it?

I want load vue-awesome-swiper full asynchronously (include css) for optimize first time load site (load speed). Exclude plugins, modules, because it loading before site loaded. I need it async,later. How i can do this?

// TEMPLATE (pug)
no-ssr
        vue-awesome-swiper
// SCRIPT
  let VueAwesomeSwiper
  if (process.browser) {
    VueAwesomeSwiper = require('vue-awesome-swiper/ssr')
  }

  export default{
    components: {VueAwesomeSwiper}
  }
// STYLE (stylus)
@import "swiper/dist/css/swiper.css"

And how cache it for used on another pages? what problems can there be?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1801">#c1801</a>)</em></sub></div>