Is it possible to batch DOM updates? Preliminary attempts at this have a weird quirk where CodeMirror content isn't actually visible until mousedown on codebox.