Come on boffins!https://youtu.be/5A8CDJaQCqo
-
-
This is the sort of very simple thing people do all the time and like as "just JS" that starts to make it hard to do this optimization.
-
That works great in lit-html, what's the difficulty?
-
It means you can't statically see the conditional and have to compare more.
-
The full optimization does no comparing at update time of anything, and also doesn't keep any repr at all of the anything other than {{}}
-
I'm not exactly sure what comparing you're referring to, but if there a conditional in the template you have to execute it.
-
You execute it once when appending and only check if the condition is still valid thereafter.
-
Yep, that's what lit-html does
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.