Stall ui-router template loading


It looks like when the app starts, there are numerous of http calls to get all the ui-router template files. Obviously, most of these files aren’t needed instantly when the app loads.
This extremely slows down the app and stalls other important http calls, because the number of them is limited.
Is there any way to stall the loading of unimportant html files to a later stage?
I was thinking of using $templateCache but not sure if it will work well with ionic’s tab cache system.
Any abvise?
Thank you


Looking at the docs, looks like you can define templates.maxPrefetch(value) if you use the $ionicConfigProvider… I haven’t tried it yet so I’m not 100% sure


Thank you, looks good