DescriptionExternal Stylesheets preloaded according to their media attribute
BUG= https://bugs.webkit.org/show_bug.cgi?id=106198
The PreloadScanner currently loads external style sheets with a non-matching media query, as long as the media type is "screen".
This can result in unnecessary delay to the page's first paint, since these resource are "very low priority".
Change description:
The PreloadScanner passes the media attribute string to the ResourcePreloader, and the ResourcePreloader evaluates the MQs using the document's existing RenderStyle and Frame.
The MQ resolution bits were moved to HTMLResourcePreloader.cpp, so this dependency is removed from HTMLPreloadScanner.cpp and added to HTMLResourcePreloader.cpp.
RenderObject dependency added to HTMLResourcePreloader.cpp.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148161
Patch Set 1 #
Messages
Total messages: 22 (0 generated)
|