From dd547fa6b42005a803a19134d20071f4e263be42 Mon Sep 17 00:00:00 2001 From: chrismilleruk Date: Wed, 20 Mar 2013 09:06:41 +0000 Subject: [PATCH] Add an artificial delay to index-async.html to simulate first time cache hit. --- app/index-async.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/index-async.html b/app/index-async.html index b530660425..44c82202c6 100644 --- a/app/index-async.html +++ b/app/index-async.html @@ -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); }); My AngularJS App