3 ms·
> If you are using standard DOM APIs and are first changing the text of a <span> element, then changing it back to what it was before ... the browser will have
by azangru 3y ago
> If you are using standard DOM APIs and are first changing the text of a <span> element, then changing it back to what it was before ... the browser will have to re-render the element twice
As far as I understand, not if this all happens within a single browser layout/paint cycle [0]
- [0] https://twitter.com/jaffathecake/status/1552242563654066176 https://twitter.com/jaffathecake/status/1552242563654066176