From a quick look, it seems like this demo is using a web worker (i.e. another thread) to chunk up the dom manipulations. There's also some code to prioritise dom elements that are in the viewport.
(As an aside, this submission would be better if it linked to a blog post explaining what's interesting about this, rather than just the demo itself)