The lastest Elm Town Podcast did discuss JS interop and also mentioned waiting for the dom to update.
They suggest you wait for the next animation frame, then the DOM will be rendered. I guess that is what you want over waiting 50ms. I did a quick search on elm-package and found this one: http://package.elm-lang.org/packages/fredcy/elm-defer-command/latest I didn't try that myself yet, so treat my suggestion with a grain of salt. Maybe look for more info on animation frames yourself. -- 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.
