3 ms·
> Nearly identical. lit-html uses `<template>`s and cloning, so that it doesn't have to do any expensive VDOM diffs. So… it's not doing reconciliations and is
by masklinn 9y ago
> Nearly identical. lit-html uses `<template>`s and cloning, so that it doesn't have to do any expensive VDOM diffs.
So… it's not doing reconciliations and is just replacing the entire tree on every render, losing things like cursor position and forcing the browser to re-render and re-layout the entire thing?
- ithkuil 9y agoHighly recommended to watch https://youtu.be/Io6JjgckHbg https://youtu.be/Io6JjgckHbg
- masklinn 9y agoYeah nah, I'm not watching a 30mn video on something I'm not interested in to get what amounts to a 2-paragraphs answer.
- anonytrary 9y ago30m sends you home? Watch it on 2x and skip parts you aren't interested in.
- itsnotlupus 9y agoI really want a way to get a generated voice recognition transcript for all that content people really think needs to be in video form. 2x playback is still 14:45 too long in this instance.
- spankalee 9y agoIt's not that anyone thought it _needed_ to be in video form, it's just a conference talk. For reading there's the readme here: https://github.com/Polymer/lit-html https://github.com/Polymer/lit-html and documentation site here: http://polymer.github.io/lit-html/ http://polymer.github.io/lit-html/ They both go into how lit-html works and how it doesn't just throw away and recreate the DOM on re-renders, though I admit the docs could still be better.
- everdev 9y agoGreat video! Relevant part is at 8:30: "at first it will render the DOM and after that it will update what's already there"
- aoeusnth1 9y agoThanks for the link, lit-HTML looks pretty neat.
- ergo14 9y agoActually it does not :)
- spankalee 9y agoNo, not at all. It marks the places in the DOM that can change and on updates only changes those.