How to verify that vue routing loads lazily

how to verify that vue routes load lazily, as mentioned in the question.

according to the vue official method, I use const Foo = () = > import (". / Foo.vue") for routing lazy loading. Although it can be used like a normal route, is there any way to prove that I did use lazy loading (instead of general routing)?

Jun.04,2021

look at the console. If you load lazily, there will be a new request when loading


switch routes locally and online to see if there is a request, and then you can also compile and look at the file


. You load routes in two ways, open network, to see how js is loaded, and then check the document

.
Menu