Sam's Website Propeller Hat Icon

insertAdjacentHTML()

Andrea Giammarchi, on Twitter (via):

whenever you do this: el.innerHTML += HTML

you’d be better off with this: el.insertAdjacentHTML(“beforeend”, html)

reason being, the latter doesn’t trash and re-create/re-stringify what was previously already there