Open cathiechen opened 5 months ago
In particular, it's easy to track whether an element came from the parser, but not so much which document it came from (that's what the spec says roughly to do).
In particular, current behavior in Gecko for implicitly render-blocking stylesheets is not what the spec says: if you remove and then append a stylesheet back via script, it doesn't remain render-blocking.
It seems blink keeps track of whether the stylesheet came from the parser but not from which parser / document.
For instance,
What is the issue with the HTML Standard?
In the Spec, to define implicitly potentially render-blocking there are: For style element:
For link element:
For the script element:
We emphasize that the parser should be created by
Document
, this constraint looks a little bit vague to me.And found in Gecko codebase, there are several parsing originations:
Would it be more efficient to put the constraint on the parsing originations? For instance,
<style>
element parsed in the parser for fragment should not be implicitly potentially render-blocking?WDYT? @emilio @xiaochengh @noamr @zcorpan