high
lit
Sign in
Explain your code
Code Explainers
Code explainers tagged
#dom-performance
javascript
class
DOMBatcher
{
constructor
()
{
this
.
reads
=
[];
this
.
writes
=
[];
Batching DOM reads and writes to avoid layout thrash
batching
requestanimationframe
layout-thrashing
Intermediate
8 steps