From c79aba92f6b058742c9ae20a9382f6abc68afcea Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sun, 9 Jan 2011 00:57:24 -0800 Subject: bootstrap angular on "document ready" instead of window.onload - use jqLite api to bootstrap angular - when jQuery is present DOMContentLoaded or hacks for IE are used - when jqLite is present DOMContentLoaded is used for modern browsers and IE9 and window.onload is used for other browsers. - test html for comparing DOMContentLoaded with window.onload Closes #224 --- perf/DCLvsWindowOnLoad.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 perf/DCLvsWindowOnLoad.html (limited to 'perf/DCLvsWindowOnLoad.html') diff --git a/perf/DCLvsWindowOnLoad.html b/perf/DCLvsWindowOnLoad.html new file mode 100644 index 00000000..b44b9114 --- /dev/null +++ b/perf/DCLvsWindowOnLoad.html @@ -0,0 +1,37 @@ + + + +
+ +{{ 'yay!' || 'angular starting...' }}
+ +
+
+