Is there a quick way in JavaScript to attach an array of child nodes to a parent node all at once?
I'm looking for a method that will avoid triggering unnecessary repaints.
So far, I attempted using parent.appendChild(arrayOfNodes)
, but it resulted in an exception.
Currently working on a reusable component for multiple projects, and hoping to steer clear of dependencies on libraries such as jQuery or Zepto.