2
I created a cross-platform application using Ionic 2 + Angular 2 according to the Get Started of ionic documentation. The basic command to create a project with side menu is this way below:
$ionic start myApp sidemenu
There is something that is bothering us a lot: the application’s startup, on the Android platform, which today is taking around 14 (mega, master, hyper, ultra) seconds (the Rubens Barrichello would do 5 laps in the Circuit of Monaco).
I did some research and found something saying that happens when the app is in mode debug, but I managed a version of release and is still slow on startup. I tested on IOS and the loading speed is very fast, which would normally happen. Has anyone ever come across this? Is there any setting that needs to be performed to resolve the problem?
Have you tried putting the following code on main.ts?
enableProdMode();
– DiegoAugusto
@Diegoaugusto but what would be the justification? I will try to see here.
– viana
It disables hotdeploy, meaning you won’t be listening to code changes and reloading them
– DiegoAugusto
Another question, you haven’t made any changes yet in the template that was downloaded? Or is making your app on top of it?
– DiegoAugusto
@Diegoaugusto already tried yes but without success! It’s still slow. I’m doing on top of the application that was generated from Starter.
– viana
All right, so you’ve got enough modules right? You’re loading them all into app.module.ts?
– DiegoAugusto
@Diegoaugusto yes, I am loading everything in app.moodule.ts. hehe
– viana