There's a new Elm performance mode.
If you’re still interested in trying it out, here’s how to ge it working.
- clone the
elm-ui
repo locally and point yoursource-directories
to it.- You can make sure to checkout the commit for the latest release (1.1.1) in order to avoid pulling unpublished changes
- Enable the virtual css in elm land via
import Internal.Model as Internal
...
Element.layoutWith
{ options =
[ Internal.RenderModeOption
Internal.WithVirtualCss
]
}
...
In my benchmarks skips the RecalcStyle
step if all the styles have been rendered at some point.
- Let me know if it made a difference for you.