Handle Errors and Loading with Vue Async Components

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

Because async components are not bundled with your app, they need to be loaded when requested. This means that your network could be slow, go down, or the file could be completely missing. This lesson shows you how to handle these scenarios with Vue loading components and Error components.

Rehan
Rehan
~ 3 years ago

But what about using this with async routing?

JJ Herasymchuk
JJ Herasymchuk
~ 2 years ago

Just two cents but to show loading instead of creating huge files, you could use throttling in Chrome DevTools and put slow 3G for example