Skip to content

Commit

Permalink
Add an artificial delay to index-async.html to simulate first time ca…
Browse files Browse the repository at this point in the history
…che hit.
  • Loading branch information
chrismilleruk committed Mar 20, 2013
1 parent 8f3f38d commit dd547fa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/index-async.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@
'js/filters.js',
'js/directives.js'
], function() {
// when all is done, execute bootstrap angular application
angular.bootstrap(document, ['myApp']);
// add an artificial delay to simulate first time cache hit.
window.setTimeout(function() {
// when all is done, execute bootstrap angular application
angular.bootstrap(document, ['myApp']);
}, 1000);
});
</script>
<title>My AngularJS App</title>
Expand Down

0 comments on commit dd547fa

Please sign in to comment.