@rtfeldman, when @edkv uses Html.Styled.Lazy, the list items styles (I should have used ul and li for more clarity) are not merged anymore at the ul level like they are when lazy is not used (because a lazy node becomes a VirtualDom.Styled.Unstyled one), leading to a lot of duplicate style nodes:
Without lazy:
<ul>
<style ... />
<li>...</li>
<li>...</li>
<li>...</li>
...
</ul>
With lazy:
<ul>
<li><style .../>...</li>
<li><style .../>...</li>
<li><style .../>...</li>
...
</ul>
From a theoretical point of view, I struggle to see why lazy nodes have to be Unstyled and can’t pass their styles up. Is this something that could be optimized?
This is unfortunate, because the time we gained from not re-computing the element elm view by using lazy, it seems we lose it in the browser using the individual <style> nodes, except with Firefox Quantum. This makes lazy less attractive when using Html.Styled.