Skip to content

关于ionic启动速度问题注意事项 #12

@alanhe421

Description

@alanhe421

有以下几点可以实现来优化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中手动关闭,不采取自动

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions