I have a pretty large app, which by now has a bundle size of around 2mb combined (3 chunks or so). In order to improve loading times, I decided to start using the relatively new React Lazy.
Here's an example of a lazy import:
const Wizard = React.lazy(() => import('./components/wizards/Wizard'));
I understand the general idea, but I still struggle to understand what's the downside, other than having to wait a bit to load a chunk from time to time.
According to what I read, I have no reason to use a regular import.
My question is: should I just use lazy import on every component import in my app? Why? Why not?
I'd love to hear what you guys think.