Support for the VirtualDom lazy optimization
From elm-lang/html documentation:
Since all Elm functions are pure we have a guarantee that the same input will always result in the same output. This module gives us tools to be lazy about building
Htmlthat utilize this fact.Rather than immediately applying functions to their arguments, the
lazyfunctions just bundle the function and arguments up for later. When diffing the old and new virtual Dom, it checks to see if all the arguments are equal. If so, it skips calling the function!This is a really cheap test and often makes things a lot faster, but definitely benchmark to be sure!"
Apply Dom.Lazy.toNode to all of the child nodes when constructing an
element container
Alias for VirtualDom.lazy
A lazy version of
Dom.Element.toNode