I have had my app running perfectly on Angular 2 and Ionic 2 till I had to upgrade it to solve the scroll issue on iOS addressed here and was solved in the recent Ionic release [https://github.com/driftyco/ionic/issues/10936] (https://github.com/driftyco/ionic/issues/10936) and I used npm outdated
to update other dependencies at the same time. Then once I started the app I have noticed dramatic slowness in the start up of the app. I had no idea where was it coming from and kept troubleshooting and breaking down the app into little pieces till I have figured out it came from firebase. So I have made a new simple app that only retrieves small data from firebase to test it as you can see, and have uploaded it on git repository Iâve linked to earlier.
The dependencies I used before:
"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",
"angularfire2": "^2.0.0-beta.7",
"firebase": "^3.6.8",
"firebase-admin": "^4.1.0",
"ionic-angular": "2.0.0",
"ionic-native": "2.4.1",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"sw-toolbox": "3.4.0",
"zone.js": "0.6.26"
},
"devDependencies": {
"@ionic/app-scripts": "^1.0.0",
"typescript": "2.0.9"
},
Dependencies now:
"dependencies": {
"@angular/common": "4.0.2",
"@angular/compiler": "4.0.2",
"@angular/compiler-cli": "4.0.2",
"@angular/core": "4.0.2",
"@angular/forms": "4.0.2",
"@angular/http": "4.0.2",
"@angular/platform-browser": "4.0.2",
"@angular/platform-browser-dynamic": "4.0.2",
"@ionic-native/core": "3.5.0",
"@ionic-native/splash-screen": "3.5.0",
"@ionic-native/status-bar": "3.5.0",
"@ionic/storage": "2.0.1",
"angularfire2": "^2.0.0-beta.8",
"firebase": "^3.8.0",
"ionic-angular": "3.0.1",
"ionicons": "3.0.0",
"rxjs": "5.1.1",
"sw-toolbox": "3.6.0",
"zone.js": "^0.8.4"
},
"devDependencies": {
"@ionic/app-scripts": "1.3.4",
"typescript": "~2.2.1"
},
Current ionic info output:
Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.4
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.10.2
Xcode version: Xcode 8.2.1 Build version 8C1002