Prefetching Ionic App Templates


A new blog post describing a method of caching templates ahead of time so they don’t need to be loaded during navigation of your app.

“When building Ionic apps, one easy way to keep your project organised is to have all of your views (templates) in separate .html files, typically in a /templates folder. One side effect of this method is that Angular has to make a HTTP request for each one of these templates on the fly as a user moves throughout your app. This can cause some latency in your app between views that can become a performance bottleneck that is noticeable by your user if your application has a lot of views.”