I'm using Ionic framework but I think my question is more generic.
It's a good practice to pre-cache HTML template by means of some grunt/gulp tasks like html2JS.
The benefit is to reduce the network round trip.
However, what about the case where the web portion is embedded in a smartphone, like Cordova/Phonegap does.
Indeed, there is no involved network.
Should I still pre-cache the templates?
Moreover, in the same context, should I need to uglify my HTML/JS?
I guess the answers are "No" and "No" but any confirmation would be appreciated.
I noticed a much improved "first run" experience after using gulp to pre-cache. Even though it's loading templates from the same device, i.e. not the internet, it's still seems to be faster. I used this Gulp task: https://github.com/miickel/gulp-angular-templatecache which just creates a nice module for you to include.