I form DOM nodes as strings and append them to DOM tree like below using jquery.
var dom = '<div><div style="display: inline-block">first name</div>'
'<div style="display: inline-block">last name</div></div>';
$("#contacts").append(dom);
above code is a small sample. In most of my cases dom will hold big strings.
When i recently read about JS performance tutorials, i saw this POST.
They told, this way of string concatenation is not a good practice. They told to use .join() instead of concatenation. But that seems like old post. Which one is efficient in these days?
Thanks!!!!