android - 如何减少 IONIC 2 应用程序的启动时间?

标签 android angular ionic2

我使用 IONIC 2 设计了应用程序。apk 大小为 6 MB。该应用程序的启动时间为 11 秒。谁能帮我减少开机时间?

Ionic 版本为 2.3.0。 Angular版本是2.4.8

最佳答案

使用

构建应用
ionic build android --release --prod

代替 ionic build android --release

在我的案例中,“--prod”标志帮助我将启动时间从 12-15 秒减少到 3-5 秒

关于android - 如何减少 IONIC 2 应用程序的启动时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43185075/

相关文章:

android - 如何避免重复 PendingIntents

html - CSS 中的/deep/combinator 已弃用,将在 M63 中删除

javascript - TestCafe错误: "No tests to run. Either the test files contain no tests or the filter function is too restrictive"

javascript - Ionic 2 中的导航栏和标题内滑动

java - 如何获取并显示数组的长度?

android - 将数据从 Android 传输到 MS SQL Server

java - Uri 文件大小始终为 0

node.js - 如何使用 Electron 构建桌面应用程序

ubuntu - 我必须在 ubuntu 中使用 sudo -E run android 而不是 ionic run android 为什么任何人都可以给出答案

javascript - 如何使用 nav.popTo() (ionic 2)?