Ionic 2构建的应用程序(IOS,Android)在启动时速度很慢 [英] Ionic 2 builded application (IOS, Android) slow at boot up
问题描述
我正在使用离子2,角度2和打字稿构建应用程序。
I am building a app using ionic 2, angular 2 and typescript.
目前,已发布的应用程序(IOS和Android)启动时间非常慢移动设备。
Currently, the released application(IOS & Android) boot up time very slow at the mobile devices.
即使带有一些UI的启动模板也需要在iPhone 6上加载5秒,在oneplus上加载6秒3.此速度太慢且无法接受。我的应用程序更复杂,需要10秒才能启动到首页。
Even the start template with some UI need to load 5 seconds at iPhone 6, 6 second on oneplus 3. This speed too slow and can't accept. My app is more complicated that takes like 10 second to boot to a front page.
启动应用程序的代码。
ionic start test --v2 --ts
启动时间是否可以提升到可接受的水平?
Can the boot time improved to a acceptable level?
推荐答案
离子2新 RC4
改变了建设过程。现在app可以使用AoT构建
Ionic 2 new RC4
changed the building process. Now app can be built with AoT using
ionic run android --prod
有关详细信息,请查看问题 ionic
For more info check out this issue on ionic
修改
Ionic-cli
3进一步模块化并且cordova命令需要 ionic cordova
。所以你需要像
Ionic-cli
3 further modularize it and cordova commands needs ionic cordova
. so you need to run it like
离开cordova运行android --prod
这篇关于Ionic 2构建的应用程序(IOS,Android)在启动时速度很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!