Like single-page applications written with Vue and Angular
The routing document states that the content following # will be ignored by the server, and the function of the content following # needs to be implemented on the client
I don’t understand routing clearly. Does it mean loading all pages or components from the server during initialization? Wouldn't it be heavy to load for the first time?
Hash routing, the server will indeed ignore the content after #, but this should have nothing to do with loading those pages and components. I have never written a single-page application using Vue and Angular, but I can directly implement routing-based code separation by using React-router with
webpack
. If I usewebpack2
, I can also dynamically import.