4 ms·
Perf boost compared to what? It can't be a FCP perf boost relative to server-side rendered plain old CSS and HTML, because shadow DOM requires client-side JavaS
by dfabulich 8y ago
Perf boost compared to what? It can't be a FCP perf boost relative to server-side rendered plain old CSS and HTML, because shadow DOM requires client-side JavaScript.
Plain old CSS is able to parse and render before the JS required to launch web components has even finished.
- lowkeyokay 8y agoIt can be a performance boost because it only updates the part of the DOM tree that has changed. Not completely unlike React’s virtual DOM