3 ms·
idiomorph: https://github.com/bigskysoftware/idiomorph https://github.com/bigskysoftware/idiomorph it's an updated take on the DOM morphing algorithm of morph
by recursivedoubts 4y ago
idiomorph:
https://github.com/bigskysoftware/idiomorph https://github.com/bigskysoftware/idiomorph
it's an updated take on the DOM morphing algorithm of morphdom, and it uses what i call "ID sets" to allow the morphing algorithm to "see" children in the DOM when making morphing decisions in the parents, which means you don't need to annotate the DOM with as many ids
here is a demo showing how it outperforms morphdom when ids are sparse/deep:
https://github.com/bigskysoftware/idiomorph#demo https://github.com/bigskysoftware/idiomorph#demo