Vite automatically rewrites code-split dynamic import calls with a preload step so that when A is requested, C is fetched in parallel instead of having an extra network roundtrip. On top of that, Vite automatically extracts the CSS used by modules in an async chunk and generates a separate file for it.
Watch video Vite Build Optimizations: Code Splitting & Async Chunk Loading online without registration, duration hours minute second in high quality. This video was added by user JavaScript Jam 11 January 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 11,024 once and liked it 50 people.