work.innerHTML += "<span>test</span>";
equivalent to work.innerHTML = work.innerHTML + "<span>test</span>";
, that is, every time it starts, it must serialize all existing work
contents, and then repeat the entire lot, plus an additional range.
work.insertAdjacentHTML("BeforeEnd", "<span>test</span>");
parses only one interval each time, and then attaches a small piece of the document to the DOM.
source share