I have heard few approaches:
- I could simply iterate through 20k elements and do appendChild.
- I could insert All items into newly created div in js and then just put that div into parent dom.
- Is there any other approach? Copy html wholesale?
However, I am confused on how to do 2. What is the best way to move all child element from div A to div B without iterating over all of them.
DocumentFragment