|
|
|
|
|
by c-smile
873 days ago
|
|
> In practice, it still re-renders a lot. Neither framework will fix programmer's errors. This for(let child of container)
child.innerHTML = getHtmlFor(i++);
will always be slower than this: for(let i = 0; i < N; ++i)
html += getHtmlFor(i++);
container.innerHTML = html;
N transactions versus 1 transaction.I mean that compiling separate N "small" DOM access calls is not always faster than one integral update. |
|