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

Jan Schneider jan at horde.org
Mon Feb 24 11:03:44 PST 2003


Zitat von Marko Djukic <marko at oblo.com>:

> 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?

No, not as long as you use "visibility" or "display" to hide and show them.
If you build a new table each time you want to show it, it's a performance
hit of course.
 
> > 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

That's very interesting. Thanks for the link.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list