Open alanhe421 opened 7 years ago
有以下几点可以实现来优化ionic速度及性能问题
AOT编译
# 加上--prod参数 ionic run android --prod ionic build android --prod
update to V3 升级指南参见官方点击这里 升级不难,不用担心,代码改动量 为什么要升级 升级主要是ng2升级到ng4,ts也升级了,ts升级影响了编译打包的速度,而ng是升级了渲染系统,整体升级对于性能有明显的提高
config.xml中关于启动动画设定
cordova-plugin-splashscreen 配置指南
<preference name="SplashScreenDelay" value="3000"/>
如果认为APP进入白屏还是明显,考虑启动动画在code中手动关闭,不采取自动
code
有以下几点可以实现来优化ionic速度及性能问题
AOT编译
update to V3 升级指南参见官方点击这里 升级不难,不用担心,代码改动量 为什么要升级 升级主要是ng2升级到ng4,ts也升级了,ts升级影响了编译打包的速度,而ng是升级了渲染系统,整体升级对于性能有明显的提高
config.xml中关于启动动画设定
cordova-plugin-splashscreen 配置指南
如果认为APP进入白屏还是明显,考虑启动动画在
code
中手动关闭,不采取自动