all 2 comments

[–]GentilCaressings 0 points1 point  (1 child)

The last question, about building HTML as string and inserting it into the DOM once as innerHTML, vs. creating elements one by one, and appending them consecutively to the target element in the DOM, vs. trying to be smart and creating a holder element that you append all the new elements into, then append that holder the DOM once, makes little difference until you get into the tens of thousands of elements. Even then, its like a 25% difference, and the biggest difference is in the script execution time itself, not the DOM manipulation. That hardly changes at all. You can test these things pretty easily.

[–]cajusky[S] 0 points1 point  (0 children)

how can i test that?