I have encountered an issue with my Ionic 3 Android application where the startup time is longer than desired, around 4-5 seconds. While this may not be excessive, some users have raised concerns about it. I am confident that there are ways to improve the launch time, given that I have other Ionic apps that load in under 2 seconds. (I handle hiding the splash screen myself after platform.ready()
is triggered)
I have already implemented common optimizations such as using enableProdMode()
, compiling with --prod
flag, and utilizing ProGuard to reduce Java classes. However, attempts with Crosswalk for performance enhancement were unsuccessful.
Currently, I am trying to analyze the process during the splash screen phase to identify areas of improvement. Unfortunately, I am unable to track specific metrics on what is causing the delay. My initial thoughts revolve around optimizing Angular classes by restructuring views and reducing native plugins, but without concrete data to support this hypothesis.
As I proceed, I have two main inquiries:
- Is there a method to monitor the operations taking place during the splash screen before
platform.ready
is activated? - Are there any general recommendations, like minimizing plugins or classes, to enhance the startup performance?