6 ms·
That might be relevant if you want to continually add many elements to the DOM, but that's rarely the case in most web applications. The benefit of using string
by pmichaud 17y ago
That might be relevant if you want to continually add many elements to the DOM, but that's rarely the case in most web applications. The benefit of using strings to shave milliseconds is heavily outweighed by the unreadable, error-prone code created when one tries to shoehorn markup into a concatenated string.