{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/12461","labels_url":"https://api.github.com/repos/angular/angular.js/issues/12461/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/12461/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/12461/events","html_url":"https://github.com/angular/angular.js/issues/12461","id":97883763,"number":12461,"title":"Long $templateCache loading time in components with many inherit views.","user":{"login":"xmityaz","id":10046613,"avatar_url":"https://avatars.githubusercontent.com/u/10046613?v=3","gravatar_id":"","url":"https://api.github.com/users/xmityaz","html_url":"https://github.com/xmityaz","followers_url":"https://api.github.com/users/xmityaz/followers","following_url":"https://api.github.com/users/xmityaz/following{/other_user}","gists_url":"https://api.github.com/users/xmityaz/gists{/gist_id}","starred_url":"https://api.github.com/users/xmityaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmityaz/subscriptions","organizations_url":"https://api.github.com/users/xmityaz/orgs","repos_url":"https://api.github.com/users/xmityaz/repos","events_url":"https://api.github.com/users/xmityaz/events{/privacy}","received_events_url":"https://api.github.com/users/xmityaz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20$compile","name":"component: $compile","color":"e102d8"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type:%20perf","name":"type: perf","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/38","html_url":"https://github.com/angular/angular.js/milestones/Ice%20Box","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/38/labels","id":529901,"number":38,"title":"Ice Box","description":"Milestone for valid issues and bugs that we have no aspirations on fixing any time soon because they are not affecting primary use-cases and are not aligned with our goals.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":214,"closed_issues":179,"state":"open","created_at":"2014-01-08T08:19:21Z","updated_at":"2016-01-22T18:33:49Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-07-29T08:13:34Z","updated_at":"2016-01-22T18:33:49Z","closed_at":"2016-01-22T18:33:49Z","body":"I have a page that has a lot of inheriting views. \r\nFor first time user redirecting to the page (views not in the cache) state is changing and user can see a loading spinner. All views are uploading from the server, even if ' ng-if=\"false\" ' for them.\r\nFor next redirecting to the same page (views already in the cache) state is changing and there is delay about 2 seconds before user can see a spinner or any other reaction for his action.\r\n\r\nIs there any workaround for this issue? To make $templateCache lazy loading, and load the view in case if ' ng-if=\"true\" ' for example? "}}