Re: [whatwg] Add an attribute for opting out of synchronous CSSOM access

2013-04-17 Thread David Bruant

Le 05/04/2013 15:07, Henri Sivonen a écrit :

Please add an attribute to link that:
  * opts an external style sheet out of synchronous CSSOM access
Sorry if my suggestion is naive, but why about an attribute to opt out 
of CSSOM entirely? As you suggested in the www-style thread [1] I would 
guess that the average author doesn't use CSSOM beyond the sugaring for 
the style attribute and maybe getComputedStyle() and even those hidden 
behind a JavaScript library.

As a web developer (I don't know about average) I certainly agree.

David

[1] http://lists.w3.org/Archives/Public/www-style/2013Jan/0519.html


Re: [whatwg] Add an attribute for opting out of synchronous CSSOM access

2013-04-17 Thread Tab Atkins Jr.
On Wed, Apr 17, 2013 at 2:51 PM, David Bruant bruan...@gmail.com wrote:
 Le 05/04/2013 15:07, Henri Sivonen a écrit :
 Please add an attribute to link that:
   * opts an external style sheet out of synchronous CSSOM access

 Sorry if my suggestion is naive, but why about an attribute to opt out of
 CSSOM entirely? As you suggested in the www-style thread [1] I would guess
 that the average author doesn't use CSSOM beyond the sugaring for the style
 attribute and maybe getComputedStyle() and even those hidden behind a
 JavaScript library.
 As a web developer (I don't know about average) I certainly agree.

Opting out entirely doesn't really gain us anything, and locks out
cases that *do* want CSSOM access but also want async stylesheets.

~TJ


Re: [whatwg] Add an attribute for opting out of synchronous CSSOM access

2013-04-06 Thread Yoav Weiss
I'm worried from the binding of async loading with the fact that
stylesheets with non-matching `media` attribute should not be loaded.
These are 2 separate (and valid) concerns, but I believe they should not be
tied to a single attribute, as discussed in a previous thread on
www-style.[1][2]

Yoav

[1] http://lists.w3.org/Archives/Public/www-style/2013Feb/0131.html
[2] http://lists.w3.org/Archives/Public/www-style/2013Feb/0142.html



On Fri, Apr 5, 2013 at 3:07 PM, Henri Sivonen hsivo...@iki.fi wrote:

 For problem statement, please see
 http://lists.w3.org/Archives/Public/www-style/2013Jan/0434.html

 For solution, please see
 http://lists.w3.org/Archives/Public/www-style/2013Jan/0457.html

 For CSS WG thinking that this is an HTML issue, please see
 http://lists.w3.org/Archives/Public/www-style/2013Mar/0688.html
 (FWIW, I think this is a CSS issue than requires an HTML attribute to
 be minted.)

 Please add an attribute to link that:
  * opts an external style sheet out of synchronous CSSOM access
  * makes the sheet not load and not defer the load event if its media
 query cannot match in the UA even after zooming or invoking a print
 function
  * makes the sheet load with low priority and not defer 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).

 --
 Henri Sivonen
 hsivo...@iki.fi
 http://hsivonen.iki.fi/



[whatwg] Add an attribute for opting out of synchronous CSSOM access

2013-04-05 Thread Henri Sivonen
For problem statement, please see
http://lists.w3.org/Archives/Public/www-style/2013Jan/0434.html

For solution, please see
http://lists.w3.org/Archives/Public/www-style/2013Jan/0457.html

For CSS WG thinking that this is an HTML issue, please see
http://lists.w3.org/Archives/Public/www-style/2013Mar/0688.html
(FWIW, I think this is a CSS issue than requires an HTML attribute to
be minted.)

Please add an attribute to link that:
 * opts an external style sheet out of synchronous CSSOM access
 * makes the sheet not load and not defer the load event if its media
query cannot match in the UA even after zooming or invoking a print
function
 * makes the sheet load with low priority and not defer 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).

--
Henri Sivonen
hsivo...@iki.fi
http://hsivonen.iki.fi/