From 770ba5201f5c60b2bb36602ff9d359f641e33125 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sun, 23 Oct 2011 21:14:40 +0200 Subject: Charting with flask, rgraph and custom "timeseries database" --- schall/static/RGraph/docs/domcontentloaded.html | 196 ++++++++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 schall/static/RGraph/docs/domcontentloaded.html (limited to 'schall/static/RGraph/docs/domcontentloaded.html') diff --git a/schall/static/RGraph/docs/domcontentloaded.html b/schall/static/RGraph/docs/domcontentloaded.html new file mode 100644 index 0000000..5213101 --- /dev/null +++ b/schall/static/RGraph/docs/domcontentloaded.html @@ -0,0 +1,196 @@ + + + + + + RGraph: HTML5 Javascript charts library - DOMContentLoaded event + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Mention RGraph on Twitter + +
+ + + +
+ + +
+ + + + + +

RGraph: HTML5 Javascript charts library - DOMContentLoaded example

+ + + +

Waiting for onload event...

+ + + + +

+ + + + + These images are here to pad the page and slow down loading so that the window.onload event is slowed. This makes the + difference far more visible. +

+ + [No canvas support] + +

+ The DOMContentLoaded event is an extremely useful event and can make a big impact on the performance of your pages, hence this + example. The DOMContentLoaded event fires when the pages HTML and scripts have loaded, but not necessarily any images or CSS. + This can make a big improvement on the apparent speed of your page(s). +

+ +

+ You can read more about the DOMContentLoaded event on the Mozilla site, here, + and the Microsoft site here. +

+ +
+ +
+function createGraph(func)
+{
+    if(window.addEventListener) {
+        window.addEventListener('DOMContentLoaded', func, false);
+    } else {
+        document.attachEvent("onDOMContentLoaded", func);
+    }
+}
+
+ +

Browser support

+ +

+ The DOMContentLoaded event is supported by the following browsers: +

+ + + +

See also

+ + You might also be interested in asynchronous chart creation as an alternative. + + + \ No newline at end of file -- cgit v1.2.1