Re: [whatwg/dom] Proposal: ParentNode.replaceAll() / ParentNode.replaceChildren() (#478)

> This isn't correct. They are both implemented using the exact same code paths in browsers, so any differences you are seeing are likely due to some other part of your setup.

In theory, I think you're right.

```
// refresh all
container.innerHTML = '';
container.appendChild(createDom());
container.appendChild(createDom());
...
```
Above code is usually used to setup, and `createDom()` is a sync method. I often see flicker in Chrome, but replace doesn't flicker.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/478#issuecomment-813455930

Received on Monday, 5 April 2021 15:31:48 UTC