Janet [email protected]
As the project has more features, the tendency is for this initial bundle to increase considerably, harming our users’ experience as they will initially need to download a larger file. This problem particularly manifests itself in environments where the internet is not very good, such as 3G networks.
To reduce this file and consequently improve our user experience, the ideal is to have smaller packages and for these packages to be loaded only when necessary – that is, in a lazy way.
We are going to refactor our project, and the first step we have already taken is to separate the functionalities into feature modules (in the Avoiding anti-pattern – single module app section, we explained the danger of not separating the application modules, and without a doubt, the size of the bundle is the most impactful for the user).