Preserve State While Moving Elements in the DOM

By Chris Coyier on

Bramus wrote this almost a year ago, but I’d still call it a relatively new feature of JavaScript and one very worth knowing about. With Node.prototype.moveBefore you can move elements around a DOM tree, without resetting the element’s state. You don’t need it to maintain event listeners, but, as Bramus notes, it’ll keep an iframe loaded, animations […]

Vite: The Documentary

By Chris Coyier on

I think it’s cool our industry has these high quality documentaries documenting the stories behind some of the transformative tech in what we do. The Vite one just came out about a month ago. What would you pick if you could pick the next one? I wouldn’t mind hearing about early-days AWS or Docker. Maybe […]