DescriptionUse deferred style recalc for non-blocking stylesheets.
Non-blocking stylesheets like alternate stylesheets cause a synchronous style
recalc when finished loading. This is quite the opposite of what one would
expect as these stylesheets should not contribute to the style at all. We use
deferred style recalc to batch up the style recalcs instead.
It might be possible to further improve this by not doing a style recalc at
all, but that requires that we detect when a non-blocking stylesheet becomes
relevant by another link element setting the preferred stylesheet set to the
same name as that of an alternate stylesheet already added as non-blocking.
R=dglazkov@chromium.org
BUG=368659
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173012
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|