[dev] Re: [cvs] commit: horde/templates/javascript tree.js

Marko Djukic marko at oblo.com
Mon Feb 24 09:41:17 PST 2003


Quoting Jan Schneider <jan at horde.org>:

> Rendering isn't the problem here, as the browser has to render the tables
> anyway, no matter how it was created.
but isn't there some performance question when once the page has loaded, you
expand and collapse mega tables using DOM?

> The strange thing is that innerHTML should always be slower than
> createElement() because the browser not only has to create the DOM node but
> has to parse the HTML code before. It seems that at least some browser have
> been optimized in a way that innerHTML is faster though.
>
don't know if you noticed... probably supports what you are saying about being
optimised in a certain situation.
http://www.developer-x.com/content/innerhtml/dom_vs_innerHTML_perf_test.html

m.


More information about the dev mailing list