Summary: | Defer applying style recalculation when stylesheet is loaded to improve page load performance | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Johnny(Jianning) Ding <jnd> | ||||||||||
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> | ||||||||||
Status: | NEW --- | ||||||||||||
Severity: | Normal | CC: | ap, dglazkov, eric, hyatt, koivisto, tonyg, wangxianzhu | ||||||||||
Priority: | P2 | Keywords: | Performance | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Attachments: |
|
Description
Johnny(Jianning) Ding
2011-11-09 03:51:23 PST
Created attachment 114239 [details]
test case
*** Bug 70868 has been marked as a duplicate of this bug. *** Created attachment 114241 [details]
timeline of defer style-recalc
Created attachment 114242 [details]
timeline of immediate style-recalc
Created attachment 114243 [details]
initial patch for reference
Just curious what the state of this is. Are you looking for feedback on the initial patch here? Planning to turn it into a real patch? Johnny, what's the relationship between the 'initial patch for reference' in this bug and the last patch in bug 70868? (In reply to comment #7) > Johnny, what's the relationship between the 'initial patch for reference' in this bug and the last patch in bug 70868? last patch in bug 70868 is not relevant to this bug. I was thinking the load performance issue was caused by style created by script, but finally it turns out to be synchronous style calculation issue. This bug came up in the context of http://en.wikipedia.org/wiki/Wikipedia load performance, which is abysmally slow (particularly on mobile), mostly due to repeated forced style recalcs from: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=resources/mediawiki/mediawiki.js;hb=8ddc49d56345fdd74016424db37a6e187829948b#l445 I have not yet tried your patch to see how it changes load performance, but I'm curious to do so. (In reply to comment #9) > This bug came up in the context of http://en.wikipedia.org/wiki/Wikipedia load performance, which is abysmally slow (particularly on mobile), mostly due to repeated forced style recalcs from: > https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=resources/mediawiki/mediawiki.js;hb=8ddc49d56345fdd74016424db37a6e187829948b#l445 > > I have not yet tried your patch to see how it changes load performance, but I'm curious to do so. I haven't touched this bug for quite a while. However I believe the direction of the initial patch is right and Firefox does asynchronously apply style rules (at least last time I dug into gecko source). Hopefully I can find some time to get back to this. |