Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Vue Router 4 for Everyone

Lazy Loading Routes (Vue CLI Only)

In this lesson, we use dynamic imports to lazy load different javascript chunks per page. This practice keeps the application lightweight and fast, as code is only requested from the server when it is needed.

If you're using Vite and don't want to see how lazy loading differs with Vue CLI, you can skip this lesson (suggested). Skip to next lesson using Vite [Insert link to "Navigation Component" Lesson].

Links