inefficient DOM manipulation
Adding multiple DOM elements one by one is inefficient.
One effective alternative is to use document fragments.
Creating attached DOM elements is expensive.
You should create and modify them while detached and then attaching them.
Last updated
Was this helpful?