This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23506 - Have a way to define low-priority style sheets (e.g. for printing)
Summary: Have a way to define low-priority style sheets (e.g. for printing)
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other All
: P3 enhancement
Target Milestone: Needs Impl Interest
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-14 20:20 UTC by Ian 'Hixie' Hickson
Modified: 2017-07-21 10:48 UTC (History)
3 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2013-10-14 20:20:02 UTC
http://lists.w3.org/Archives/Public/www-style/2013Jan/0434.html:
>
> avoid [or delay] the transfer of data that is not relevant to the
> state of the user agent at the time of the page load.

A possible proposal from Henri is an attribute on <link> that opts an
external style sheet out of synchronous CSSOM access, makes the sheet
not load and not delay the load event if its media query cannot ever
match in the UA even after zooming or invoking a print function, and
makes the sheet load with low priority and not delay the load event if
its media query does not match at the time the <link> element is
inserted into the document but might match later (e.g. if it's a print
style sheet, or depends on pixel density).
Comment 1 Ian 'Hixie' Hickson 2014-09-26 21:36:16 UTC
This proposal or something close to it would handle this, I think:
   http://lists.w3.org/Archives/Public/public-whatwg-archive/2014Sep/0012.html
Comment 2 Anne 2017-07-21 10:48:59 UTC
If this is still desired, please file a new issue at https://github.com/whatwg/html/issues/new.