concept Html Msg value in category elm

appears as: n Html Msg value, Html Msg value
Elm in Action

This is an excerpt from Manning's book Elm in Action.

Whenever the Elm Runtime calls our view function, it will return an Html Msg describing how we want the page to look. Building up this Html Msg representation usually doesn’t take much of the computer’s time, but if a view function gets large enough—and especially if it’s running on an underpowered device like an old smartphone—it’s possible (although rare) that assembling the Html Msg value itself can be the source of performance problems.

When this happens, the usual fix is to avoid doing work, by identifying sections of the Html Msg value that rarely change and avoiding having to rebuild them each time view is run.