I am using $routeProvider in Angular. Whenever I go to particular route I see log in the console:
XHR finished loading: "http://localhost:8080/root/partials/view1.html".
XHR finished loading: "http://localhost:8080/root/partials/view2.html".
...
At this point the particular pages are cached I think in the browser and could be referenced faster. How can I make a XHRs for all my routes in the background when the Angular is referenced first time? I search for something like this:
for ( /* every page inside routeProvider */ ) {
// XHRs the page
}