App Loading time 11 seconds (I need advice)

Hi everyone!!! I have the last version of ionic

Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.0-rc.5
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.0
ios-sim version: 5.0.4
OS: macOS Sierra
Node Version: v7.2.1
Xcode version: Xcode 7.2 Build version 7C68

And the loading time is too much. I read the previous posts about this issue (so many). I need a recommendation:

Wait for a solution? Some workaround? or just downgrade the version without this problem?
I need go to Production soon and the time is very important for me.

Thank you very very much!!
Regards
Armando

If Android
Remove android platform :
ionic platform rm android
then Instal The last version :
ionic platform add android@latest
And when you build use : ionic build android --prod
Good Luck

Thank you for your response. I maked this and doesn’t works.

Hi @aboessa, i have the error descripted by @armandof and try your solution but this not resolved my problem.
I am working in windows 10 X64

Thankyou for your response.

1 Like

what is the app ionic version , and app-scripts ?

can you tell me how i can know it?

hi mmmm this is te information of my package.json:

“dependencies”: {
"@angular/common": “2.2.1”,
"@angular/compiler": “2.2.1”,
"@angular/compiler-cli": “2.2.1”,
"@angular/core": “2.2.1”,
"@angular/forms": “2.2.1”,
"@angular/http": “2.2.1”,
"@angular/platform-browser": “2.2.1”,
"@angular/platform-browser-dynamic": “2.2.1”,
"@angular/platform-server": “2.2.1”,
"@ionic/storage": “1.1.7”,
“ionic-angular”: “2.0.0”,
“ionic-native”: “2.4.1”,
“ionicons”: “3.0.0”,
“rxjs”: “5.0.0-beta.12”,
“zone.js”: “0.6.26”,
“sw-toolbox”: “3.4.0”
},
“devDependencies”: {
"@ionic/app-scripts": “1.0.0”,
“typescript”: “2.0.9”
},

use --prod tag when you run on device

I do!!! But the probblem continues!!! :frowning: i dont know what happend whit this!!!

Your app scripts need to be updated make it 1.1.4 in package.json.
and then run in console
rm -rf node_modules
npm install
ionic rm platform android
ionic add platform android
npm build --aot --prod
ionic run android --prod

Hi friend! I try this and it work for me!!! Only comment that my app-scripts already insted 1.1.4, but i do your comment (next steps) and it work, i have a notification in console that says DEVICE READY FIRED AFTER 947 ms!!!

Thank you brother!!! You safe me!!![quote=“padmini_84, post:10, topic:78307, full:true”]
Your app scripts need to be updated make it 1.1.4 in package.json.
and then run in console
rm -rf node_modules
npm install
ionic rm platform android
ionic add platform android
npm build --aot --prod
ionic run android --prod
[/quote]

In your list of commands, what does npm build --aot --prod do?

Documentation is provided here: https://github.com/driftyco/ionic-app-scripts

I don’t see any references to npm build or –aot in the documentation you provided or do I miss something?