Pinned Loading
-
-
-
Performance difference between inser...
Performance difference between insertAdjacentHTML and appendChild 1~~`Element.prototype.insertAdjacentHTML` can be up to 4 times slower than `Node.prototype.appendChild`. So use the latter wherever possible for best performance.~~ (See comment from @frankbakulov below!)
-
Vanilla-JS-equivalent-for-jQuery.rep...
Vanilla-JS-equivalent-for-jQuery.replaceWith.js 1Element.prototype.replaceWith = function(html) { this.insertAdjacentHTML("afterend", html); this.remove(); };
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.