Skip to content

Commit dd547fa

Browse files
committed
Add an artificial delay to index-async.html to simulate first time cache hit.
1 parent 8f3f38d commit dd547fa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/index-async.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@
3636
'js/filters.js',
3737
'js/directives.js'
3838
], function() {
39-
// when all is done, execute bootstrap angular application
40-
angular.bootstrap(document, ['myApp']);
39+
// add an artificial delay to simulate first time cache hit.
40+
window.setTimeout(function() {
41+
// when all is done, execute bootstrap angular application
42+
angular.bootstrap(document, ['myApp']);
43+
}, 1000);
4144
});
4245
</script>
4346
<title>My AngularJS App</title>

0 commit comments

Comments
 (0)