[Vuejs]-Asynchronously load a Vue plugin

0👍

From the official docs:

The plugins directory contains JavaScript plugins that you want to run before instantiating the root Vue.js Application.

I know that you can customize the behavior of a plugin when you do create it thanks to some helpers like nuxtState.
And even change, the behavior of the plugins but it at the end, if you look at the lifecycle of Nuxt, it will always be loaded before any lazy loading logic that you may implement.

So, I’m pretty sure it cannot be done right now. At least, the documentation goes into that direction. May be interesting to ask it on Discord to have an official confirmation.

Leave a comment