Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
slow launch time #670
From @philrob on January 13, 2017 9:50
At ionic (e.g. Dan) you state that improving the launch time of ionic2 is currently your #1 priority.
Personally, because every environment is different, I'm using your ionic-conference-app to monitor the situation for my specific environment as it provides a standard 'benchmark' (including for best practices as its developed by yourselves). Currently I experience a launch time for the conference app of ~8 secs on my Nexus 7 (2013) running Android 6.0.1 (both rc4 and rc5), which I'm afraid, I feel is a little too long for me.
I REALLY like ionic for many other VERY important reasons (pedigree, support, documentation, facilities, ...). Also as an experienced developer, I do fully appreciate you have NOT yet reached your final release but, would really like more ongoing feedback on what to expect. Maybe, a specific section in the 'changelog' for each new release candidate?
Copied from original issue: ionic-team/ionic-conference-app#344
I am not sure exactly what you're looking for. We understand there is an issue here and we're trying to come up with a good short term solution for it. We know what needs to happen long term and are working with Angular to identify the changes they need to make to help us.
Right now we can't tree shake much of the code due to how Angular is distributed. They know this is an issue. We know it's an issue. They're working on the changes on their end. We're working on the changes on our end.
We aren't going to give a timeline because there are too many external dependencies and guesses/theories as to when the issue will be resolve. When a developer does an AoT build, in theory the vast majority of Angular (and Ionic) should be removed from runtime. That is not presently the case so we need to get it working.
Part of the problem is that treeshaking is completely broken in Webpack.
This is our number one priority. 3 of our team members were in Mountain View last week meeting with Angular, Chrome and Closure Compiler teams to work together to come up with solutions. We have a plan in place that will dramatically reduce the file size and improve start up time - now we need to implement it.
I'm happy to answer any question - we work transparently - but we locked the other thread on the topic because the more comments and discussion we need to stay in the loop about there, the less time we have to actually fix the issues.
Don't want a lot of detail but, your comments above are certainly informative.. Basically, I would just like to know when you think you done something in this area to make it worth me re-checking my launch time for your conference app (for instance I was surprised/disappointed to see no reduction in launch time between rc4 and rc5, with the --prod option set). Unless you're going to hit ~4 secs (i.e approx half what I experience now) for your conference app (which isn't overly complex) I cannot see potential app users staying around. I'm sure you're also thinking around code splitting to at least show something quickly with rest loading later or via 'lazy loading'. Finally, I just thought the 'changelog' could be a good place for such information.
Good luck with your efforts ...,
Cheers Phil Rob
referenced this issue
Feb 8, 2017
referenced this issue
Mar 2, 2017
i am facing the same problem. my boot time is 13sec which is unacceptable.Please help me i am using latest ionic. Here is my Info