Return to Snippet

Revision: 11846
at February 22, 2009 09:04 by iroybot

Initial Code
el.innerHTML = dish; //much faster than $el.html( dish );
//tried also the function replaceHtml from
//but it was not faster nor without sideffects (it was not possible to count spans into el)

Initial URL

Initial Description
I just found this interesting comment in the jQuery Syntax Hiliting Plugin "Chili".
It seems, one should preferrably use innerHTML instead the core jQuery method...
(Just to clarify: I didn't do any benchmarking myself)

Initial Title
Performance issues when modifying HTML with jQuery

Initial Tags

Initial Language