From 16c34cc292c4d6fdc722ec6fc2f3e0ba3e405005 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 16 Apr 2012 13:14:53 -0700 Subject: [PATCH] added wait for ready, as a possible solution to site not loading --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index ad9290a94..448b7d5b3 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,9 @@ function bootstrap() { if (window.prettyPrint && window.$ && $.fn.popover && angular.bootstrap && hasModule('ngLocal.sk') && hasModule('ngLocal.us') && hasModule('homepage') && hasModule('ngResource')) { - angular.bootstrap(document, ['homepage', 'ngLocal.us']); + $(function(){ + angular.bootstrap(document, ['homepage', 'ngLocal.us']); + }); } }