Issue metadata
Sign in to add a comment
|
ServiceWorker startup does unnecessary initialization work for Shadow Page (e.g. parsing CSS) |
||||||||||||||||||||||
Issue descriptionWhen Chrome creates a new (render) process for a service worker, the new process's CrRenderMain thread performs a bunch of initialization work that's not needed for a ServiceWorker: 1) Setting up SafeBrowsing's anti-phishing 1) Parsing a stylesheet (presumably default browser stylesheet) and applying the style 2) Layout work(!) This seems like an unnecessary overhead that delays ServiceWorker startup. Is it possible to skip this work or postpone doing it? See attached chrome://tracing output, I can upload the trace itself but it's very reproducible
,
May 7 2017
,
May 7 2017
Could this be due to the shadow document architecture that we currently have? Any reasonable short term option or shall this be solved as part of the existing plan?
,
May 7 2017
,
May 9 2017
Yep, I did see that this could happen when the shadow document is loaded. We're removing this part so I expect this should be solved. (I'll also look if there's an easier shorter-term option)
,
May 9 2017
Thanks for confirming. Assigning to you in the meantime. I see two potential outcomes: 1. there is a reasonable short term option in which case we keep this bug open, describe the plan, and find an owner. 2. there is no reasonable short term option in which case we dedup against the bug tracking the removal of the shadow document. Best,
,
Sep 29 2017
Let me merge this to the other issue that tries to remove the shadow document.
,
Apr 3 2018
Let me revive this given that fixing these smaller ones could potentially be important as far as it's not hard to do (while we also want to make progress on shadow document removal)
,
Apr 3 2018
,
Apr 3 2018
Hiroki, Matt: do we think we could do some of these in Q2?
,
Apr 9 2018
I'm now making a POC CL to bypass some ShadowPage setup. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by vdje...@fb.com
, May 6 2017