(See comment from @frankbakulov below!)Element.prototype.insertAdjacentHTML
can be up to 4 times slower than Node.prototype.appendChild
. So use the latter wherever possible for best performance.
Last active
November 22, 2024 04:59
-
-
Save FlameWolf/000b14312bb83ab1628ab0b80007eff0 to your computer and use it in GitHub Desktop.
Performance difference between insertAdjacentHTML and appendChild
Yep, seems things have changed since I posted this. Will update, thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually no, it's the opposite
https://www.measurethat.net/Benchmarks/ListResults/11738