DEV Community

Discussion on: Faster way to appendElements in js πŸ‘¨πŸ»β€πŸ’»

Collapse
 
anduser96 profile image
Andrei Gatej • Edited

I think you can improve the performance even more if you clone the element, instead of creating one every time.

It’s just an idea, here is an example.

Good luck!

Collapse
 
wakeupmh profile image
Marcos Henrique

Hi Andrei, I can't see a solid example in your link, Can you pass this example for me?

Collapse
 
anduser96 profile image
Andrei Gatej

Hi! Yes, I can’t see the initial example either. They might have changed some stuff in the meanwhile.

There was just a small article showing some benchmark results. As far as I could understood, it is slightly faster to clone elements, but when working on small apps this should not be a concern.

Thread Thread
 
wakeupmh profile image
Marcos Henrique

Thanks for the reply, I Will study Thais, for improve my codes 🀩