hi,

I didn´t see that you clean up events/dom-expandos to prevent memory
leaks. how fast is your method if you invoke the cleanData-function
beofre replacing the parentElement?

regards
alex

On 13 Dez., 14:19, Devon Govett <devongov...@gmail.com> wrote:
> Hi all,
>
> I've just blogged about a technique that I used to make jQuery.empty
> over 10x faster in some cases.  Basically, rather than individually
> removing each child element from the DOM which causes the browser to
> reflow after each one, I use a shallow cloneNode to do the job then
> copying events back over.  Check out the blog post for more 
> details:http://devongovett.wordpress.com/2009/12/12/how-to-make-jquery-empty-....
> I've included some charts comparing the performance of jQuery 1.4's
> empty and html("") functions, as well as the function I've written,
> and the cloneNode method out performs all other methods by a
> significant amount in all browsers.
>
> Thanks for jQuery!
> Devon

--

You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en.


Reply via email to