Re: [whatwg/dom] Declarative Shadow DOM (#831)

I've put together a more "complicated" set of examples, aimed at measuring the performance of SSR (using the proposed declarative Shadow DOM implementation in Chrome) as compared to CSR with inline styles and adoptedStylesheets. I've written it up [here](https://github.com/mfreed7/declarative-shadow-dom/blob/master/perf_tests/clock_example/results.md). As a TL/DR, here is the conclusion paragraph:

> Between the two non-SSR examples, the version using adoptedStylesheets is about 4.5% faster than the version using inline styles. However, the SSR example is about 30% faster than both of the non-SSR examples, despite the HTML content being over 10x larger. Additionally, the SSR version does not suffer from a flash of partially-styled content.

Please take a look and let me know your thoughts.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/831#issuecomment-597305288

Received on Tuesday, 10 March 2020 20:45:12 UTC