script: Check for render-blocking documents before continuing (#43150)

The spec expects us to check for render blocking (among some other
state) before we start procesing a document. Therefore, add those checks
and also check in the
stylesheet loader that we should only do so when we are allowed to do
so.

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe
2026-03-13 10:54:03 +01:00
committed by GitHub
parent 5fec1395c9
commit af256bd6e5
13 changed files with 190 additions and 40 deletions

View File

@@ -19,6 +19,8 @@ interface HTMLScriptElement : HTMLElement {
attribute boolean async;
[CEReactions]
attribute boolean defer;
[SameObject, PutForwards=value]
readonly attribute DOMTokenList blocking;
[CEReactions]
attribute DOMString? crossOrigin;
[CEReactions, SetterThrows]