jQuery: The Write Less, Do More JavaScript Library

Re: document.write and DOm creation - performance optimization?

by Michael Geary-3 :: Rate this Message:

Reply to Author | View in Thread


Did you try the wrapper DIV that I suggested? Did it help or not?

    $('div.displayer').html( '<div>' + strHTML + '</div>' );

-Mike

> huh. this is an interesting thought. why would the use of
> join() speed things up versus just appending a string variable?
> the reason I'm not concerned about the for() loop is that it
> seems to be quite fast when I output the strHTML in a document.write.
>
> I'm trying to figure out wasy to speed up the rendering by
> doing something other than html()... but I can't think of anything.

 « Return to Thread: document.write and DOm creation - performance optimization?