Menu
I’m now fiddling with the DOM and I wrote a script that appends a div element 2000 times. I implemented it using setTimeout to see it append the elements in real time, and I noticed that its fast at first and gets slower and slower.
My understanding of the DOM is that its like a linked list and since it stores a pointer for the last child I don’t think appending a child shouldn’t get this much slower. What am I missing? Is there a faster way to add a lot of divs?