Ionic 3, App is taking too long time to open in first time

Hello,

My ionic App takes 60 secs or more to load on first time, After leaving Splashscreen the app like hang , I can’t able click or type the email and password on the sign-in page for a minute, after this the app works fine, app has a lot of images and use JSON response. Any ideas how to reduce the load time?

Ionic Info:

Ionic:

Ionic CLI : 5.4.5 (C:\Users\Admin\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.4

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 6.3.0
Cordova Plugins : cordova-plugin-ionic-webview 1.2.1, (and 17 other plugins)

System:

NodeJS : v12.13.0 (C:\Program Files (x86)\nodejs\node.exe)
npm : 6.12.0
OS : Windows 10

Thanks
shubham

Hi @C_shubham,
This could be because you are calling many services after the login I believe.
Can you check with lazy load concepts(something similar to this but not exact one). And try to get all the images from backend… Don’t store/load it in assets/or in app memory.

Hello yashwanth493,

I’ve tried to fix, all the images have been removed from the assets and the app has been created but the same problem has occurred.
Actually app run app.component.ts file works perfectly then stops responding for 30 seconds to 1 minute, after that app has done its job.
And my app has images in SVG format (2kb to 10kb) in size, I don’t think images are affecting the app.