I have a fairly complex Ionic project that is running into some performance issues, specifically on mobile. In trying to diagnose and resolve the issues, I noticed in Chrome Dev Tools that every single UI Router state’s template (and some of the directive templates in those templates as well) is getting loaded on app startup via XHR - literally dozens of calls all at once. See attached image for an example.
Image 1 - http://i.imgur.com/Ao0pdnI.png
- Is this expected behavior? Even with a starter tabs app, I am seeing that all the tab content gets loaded by XHR (see screengrab #2). Based on the console, it looks like these calls are originating from inside ionic.bundle.js.
Image 2 - http://i.imgur.com/3oGxg8v.png
- Can we disable this, with the templates only loading the first time they are triggered?
This is somewhat urgent, so any help is greatly appreciated!