You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Render-blocking a defer script or non-async module script #10068
My main concern is that it might be a bit too easy to block rendering on a defer (or module which is defer by default) script, and thus block until the timeout hits or until the full document is parsed. I'll file a spec issue.
As footguns go, this one is quite easy to spot (explicitly says render blocking) and more importantly to fix (add async). So IMO this is a matter of documentation rather than changing behavior.
For short documents, using render-blocking and defer together seems OK. So I'm not proposing that the spec should change to make blocking=render do nothing for defer or non-async module scripts. But maybe the spec should at least have a note or a warning about the implication of this combination, and developer tools / performance checks could have a warning at least when render-blocking has been active for a certain time.
Activity
noamr commentedon Jan 16, 2024
Sounds good. In general I think the recommendation should be that
blocking=rendershould be used together withasync.