My understanding is that's CSS reflows what makes DOM operations expensive
This is why CSS contain property is such a big performance revolution.
There is also if I remember well, a special kind of Dom that is only for logic, therefore being unaffected to reflows. I don't remember how it's called.