--
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 elm-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I like this direction. One of the things I want in an app is near-instant load time. In addition, this leads nicely toward a server-side Elm "some day" which is another thing I hope for :)
I said that it might add some complexity or be a little slower but only in the case where 'attach' is being used. A further observation is that the extra complexity would only be needed on the first pass - after that, the client has full ownership of the vdom and could revert to the original algorithm for updating it. So it _might_ have some impact on the first pass when using 'attach', it might also work out that the impact is pretty negligable.
Attaching to an pre rendered DOM, optionally enhancing it, is a big win.
It's not just something done in React. (I first saw it in a Backbone application if that helps date it.)
On the performance side, the "time to attach" a price worth paying. You serve a usable interface, you enhance it without a re-render, the pecieved performance is much faster. (And if you JavaScript fails to load you're still in business.)
I'm a big +1 on this. I'm happy to help test, or whatever else I can offer.
Good one!
Carlton
I propose to continue investigating it and write up how to modify the Elm code to do it.