Ionic4 React - how to avoid code splitting, or preload modules

Hello, I’m happily working on a Ionic4/CRA app but I face quite a lag the first time I use a Modal or PopOver due to built-in lazy loading.

I’m struggling to find a viable way out of this. For the best user experience, I need either of the following solutions:

A) produce one single bundle and work on a CSS based loading screen
B) being able to preload Ionic components in the main file

But I can’t find any documentation.
Can you help out?

1 Like

Same issue here! Someone from ionic team can give some thoughts about this please?