3 ms·
Show HN: Idiomorph, a new DOM morphing algorithm
- recursivedoubts 4y agohello HN I have been working on a new DOM-morphing algorithm for htmx. It is based on the standard morphdom algorithm[1], but uses ID sets to offer better DOM stability with fewer explicit IDs. There is a demo gif near the bottom that shows how idiomorph can keep the DOM stable in places that morphdom cannot. The algorithm is still extremely new, so I'm sure there are plenty of bugs and corner cases, but I thought people outside of the htmx world might be interested in the project. [1] - https://github.com/patrick-steele-idem/morphdom https://github.com/patrick-steele-idem/morphdom