Closed Bug 1214133 Opened 6 years ago Closed 6 years ago
In the profile at bug 1210860 comment 9, before loading app content it spends ~120ms on Flame to load frame script extensions.js, most of time spend on importing ExtensionContent.jsm. Preload it to get some improvements. Note ExtensionContent.init() sends async message through PBrowser to chrome process.
Comment on attachment 8672998 [details] [diff] [review] patch v1 With this patch, it now takes ~10ms on Flame for RecvLoadRemoteScript() to run extensions.js. Since PBrowserChild hasn't been constructed when preload, leave ExtensionContent.init() in the frame script (extensions.js), otherwise sending async message will cause abort.
Attachment #8672998 - Flags: review?(fabrice)
Attachment #8672998 - Flags: review?(fabrice) → review+
You need to log in before you can comment on or make changes to this bug.