4 ms·
That's not quite what I meant. By text parsing, I mean sending a big string to the DOM like: elem.innerHTML = "<p>Example. Please parse me.</p>"; That's g
by strmpnk 11y ago
That's not quite what I meant. By text parsing, I mean sending a big string to the DOM like:
elem.innerHTML = "<p>Example. Please parse me.</p>";
That's going to take more time than carefully constructing elements and reusing things judiciously.
- Touche 11y agoThat's not how most templating languages work any more, they parse them into DOM elements and do minimal updates like virtual dom libraries.