Ionic 2 , blank project takes 15 secs to load the main page


#1

I create ionic 2 project the following command:

ionic start myNewIonicApp blank --v2
then I checked the plugins for my curiosity using the command,

ionic plugin list
here is the result that I got

cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-splashscreen 4.0.1 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"

Then I added the android platform and run it

ionic platform add android
ionic run android --prod

I saw the white blank page between splash screen and main page and It takes 15 sec. I didn’t modify anything and just build and run. so I added the two line in config.xml file.

<preference name="loadUrlTimeoutValue" value="60000" />
<preference name="AutoHideSplashScreen" value="false" />

After building and run the application, there is no white blank screen. Although I saw only splash screen and main page, It still take 15 sec. How can I do it faster? I didnt modify anything (just build and run).


#2

Try running these commands:

ionic platform remove android
ionic platform add android@latest
ionic resources
ionic build --prod --release

#3

still no luck when trying with rc4.


#4

Yes,
it’s true that it requires a long time to load completely (at least in my case).

I don’t know how to do it faster. :confounded:


#5

change to rc5 and run as production mode "–prod"
that should be ok