3 ms·
hello 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
by recursivedoubts 4y ago
hello 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