Lazy Load a Route by using the Dynamic Import in Vue.js

Share this video with your friends

Send Tweet

By default, vue-router doesn’t lazy load the routes unless you tell it to do it. Lazy loading of the non-critical routes is one of the points of the PRPL pattern.

This lesson will show you how you can use the dynamic import to lazy load non-critical routes.