- From: Ryosuke Niwa <notifications@github.com>
- Date: Sun, 14 Jul 2019 15:10:39 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 14 July 2019 22:11:01 UTC
> Wouldn't it be more efficient if each shadow dom could linked to an external style sheet instead? The browser would cache that external resource after the first download of it, and use that cache for each recurring element's link to the same sheet. The browser would do this for all sub-resources regardless of where they appear. Browser engines can also cache the result of parsed CSS, etc... whenever the same CSS appears in multiple shadow trees. Constructable stylesheets, if implemented in WebKit, will probably be not anymore efficient than just using style element in each shadow tree in any meaningful way. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/800#issuecomment-511239483
Received on Sunday, 14 July 2019 22:11:01 UTC