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
April 14, 2023 22:12
-
-
Save FlameWolf/000b14312bb83ab1628ab0b80007eff0 to your computer and use it in GitHub Desktop.
Performance difference between insertAdjacentHTML and appendChild
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment