React dynamically loads routing, will there be flashing phenomenon?

but for page applications, routing is divided according to navigation, that is, five pages. Routing is dynamically loaded. Every time you click on a page that has not been opened, it will flash. If you have already clicked on it, it will not flash. If the entire page is refreshed, it will flash when you click on the page that has been clicked on. Could you tell me how to solve this phenomenon?

Apr.09,2021

is this method only suitable for particularly large projects?


the whole thing should be normal, right? Flashing is not a request to load a js down.

the next time you click without refreshing, you will use the cache, so don't flash


react-loadable shows loading effect

Menu