Thursday, 22 August 2013

jquery html() vs empty().append() performance

jquery html() vs empty().append() performance

I have created a test case at
http://jsperf.com/jquery-html-vs-empty-append-test to compare the
performance of $.html() with $.empty().append(). I wondered that
.empty().append() is faster.
Can anyone explain this performance gap?
Thanks.

No comments:

Post a Comment