@jonathanschndr.deJonathan Schneider @jonathanschndr.de
2026-11-21 11:01 UTC
Element.moveBefore() moves a DOM node without resetting it. insertBefore() removes and re-inserts it, so iframes reload and CSS animations restart. My demo moves the same card 3 times: insertBefore fired 4 iframe loads, moveBefore just 1, and the animation kept running. #JavaScript #webdev
1 picture (not shown on this phone): Screenshot of my own demo page rendered in headless Chrome 158, titled "Move a node without resetting it". Two panels e…
0 likes, 0 reposts, 1 replies
3 Next post4 More from @jonathanschndr.deBackBluesky home