Correctly zeroing and minimizing an Ionic 3 / Angular2 app with lazy pages and components

I just finished building an Ionic 3 web app and I opted for lazy loading due to the size of the app itself. However, I ran into performance issues when it comes to loading the application. The created main.js

one is (4.3MB) which can take quite a long time if the network is slow (I understand this will be a breeze on the device itself). I got the .gif "loading" showing while I wait for it to load, and I realize that this doesn't actually solve the problem, but actually adds to it.

I looked over main.js

and the file would certainly be much smaller if it was downsized and confusing.

I have no experience with that, and the tutorials I find on the net do not apply to lazy loaded modules ... Most just broke my application.

Can anyone point me in the right direction? Or at least tell me is it possible?

+3


source to share





All Articles