Thank you for the quick reply.
When you say "grouping nodes", are you referring to the single append of a string that has all 1000 divs in it?
What you're saying about children opposed to nodes makes sense. But since you're obviously an excellent source of knowledge, let me take advantage of you by asking a followup
If adding an additional node to the DOM strictly for the purpose of being a wrapper node to speed up the insertion of the 1000 divs complicates things due to pre-existing logic, which would be the best alternative as far as trying to achieve the same performance increase?
-
Detaching the node that the 1000 divs was going to be put into, then wrap it around the grouped divs, then append the detached node back into place in the DOM
-
Appending the wrapper node with the 1000 divs as children, then unwrap the children to remove the wrapper node
-
[Feel free to offer a better solution]
I feel like #2 wouldn't be very good since the unwrap method is called on the element(s) that will then have their parents removed, which in this case would result in a collection of 1000 divs. In my experience, this can be very sluggish.
Thanks again for your reply. This has been a white whale issue for me.