[Webkit-unassigned] [Bug 39455] New: <link> elements with media queries that do not affect the current page can be delayed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 20 16:24:07 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=39455

           Summary: <link> elements with media queries that do not affect
                    the current page can be delayed
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Page Loading
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joepeck at webkit.org


Created an attachment (id=56644)
 --> (https://bugs.webkit.org/attachment.cgi?id=56644)
[IMAGE] Web Inspector Shows Waiting for a useless media="print" resource

HTML5 describes the <link> element's media attribute here:
http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#attr-link-media

> However, if the link is an external resource link, then the media attribute
> is prescriptive. The user agent must apply the external resource when the
> media attribute's value matches the environment and the other relevant
> conditions apply, and must not apply it otherwise.

If the browser is unaffected by the media queries in the <link media="...">
then it is safe to assume that the content is not immediately necessary
and time could be better spent download other resources. Also, it may
not be necessary to prevent the DOMContentReady or onload event's
for the resource.

In the attached image, the "print.css" file is a link with media="print". These
styles do not affect the document, yet it was downloaded and delayed some
events from firing.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list