Hi guys!
Just want to let you know that I was having performance issues with my android app and after some tweaks I got a performance boost.
First of all was to enable native scroll (iOS and Android) on views that I don’t use keyboard or any scroll events.
Seconds was to use templateCache instead of regular HTTP requests for templates.
https://www.npmjs.com/package/gulp-angular-templatecache
Changes in my gulpfile.js
var templateCache = require('gulp-angular-templatecache');
...
gulp.task('generate:cache', function () {
gulp.src('www/templates/**/*.html')
.pipe(templateCache({
module: 'yourmodulename',
root: 'templates/'
}))
.pipe(gulp.dest('www/js'));
});
...
gulp.task('watch', function() {
gulp.watch('./www/templates/**/*.html', ['generate:cache']);
gulp.watch(paths.sass, ['sass']);
});
All my page transitions worked a lot better with this. And you can delete the templates/ folder after building your app.