I began troubleshooting it and discovered that in the case where the app does not bootstrap, cssReady never seems to call done(). Although it doesn’t seem to increment the cssLoadAttempt indefinitely either.
Ionic team – any ideas as to why my app occasionally goes into a death spiral on ionicBootstrap() but most of the time not?
Would having the ionicBootstrap call inside a ‘deviceready’ event callback cause a problem? I’ve done that so that I can clear some localStorage prior to bootstrapping the app if necessary.
The problem is exacerbated on older (slower) devices like iphone 5 and 6. I am using a lot of things in the app like ngrx, rxjs, and localStorage. The reason I want to handle deviceready before app load is due to the nature of how localStorage is rehydrated at ionicBoot. I want to clear some state before hand if needed.