[Bug 22539] [Shadow]: Add support for external stylesheets using link rel="stylesheet"

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22539

--- Comment #6 from Hayato Ito <hayato@chromium.org> ---
Thank you. That looks very reasonable argument and looks very important from
the view of the performance. Totally agreed.

(In reply to Steve Orvell from comment #5)
> I agree with Dimitri and he has a good basic summary.
> 
> We need to resolve the fetching issues with using remote stylesheets in
> shadowRoots before adding any new behavior, and the imperative api Dimitri
> outlined should address this.
> 
> The basic problem is that if a style element that has remote content
> (@import) is added to a shadowRoot, the remote content is fetched. Imagine
> that an author wants to create N shadowRoots. The author uses the best
> practice of putting style elements inside shadowRoot but wants to use a
> remote stylesheet in each one. This currently requires N network requests,
> even if there is only 1 referenced remote stylesheet.
> 
> The idea behind `root.stylesheets.add(stylesheet)` is that you can apply a
> stylesheet to a shadowRoot without causing it to re-fetch or parse.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 30 May 2014 05:02:12 UTC