Hi Sebastian, Elm batches DOM updat`es using requestAnimationFrame <https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame>, so you should be able to delay until after the next DOM update by wrapping your entire callback (starting from let el = document.body.querySelector( selector)) in a call to requestAnimationFrame.
See if that works! -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
