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
blocking="render" attribute on <link>, <script> and <style> #608
This proposal also includes the standardization of a general render-blocking mechanism, which will standardize the existing stylesheet loading behaviors and support the proposed attribute. The proposed behavior slightly differs from Firefox's current behavior: the proposal does not allow requestAnimationFrame() callbacks to fire until all render-blocking stylesheets are loaded, while Firefox currently allows it.
Well, UA can always stop the blocking. Otherwise there would be security/privacy issues.
But yes, we could stop calling rAF. Though, need to test how resize (and other) events behave in other implementation while rendering is blocked.
But yes, we could stop calling rAF. Though, need to test how resize (and other) events behave in other implementation while rendering is blocked.
@smaug---- can you clarify the question. Did you mean the impact of resizing the window? As per the spec text here there's no rendering opportunities while we're blocked. So no events which happen during the rendering lifecycle run.
I think this is reasonable and useful. 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.
changed the title [-]Request for position: blocking="render" attribute on <link>, <script> and <style>[/-][+]blocking="render" attribute on <link>, <script> and <style>[/+]on Jan 19, 2024
Activity
smaug---- commentedon Jan 21, 2022
Well, UA can always stop the blocking. Otherwise there would be security/privacy issues.
But yes, we could stop calling rAF. Though, need to test how resize (and other) events behave in other implementation while rendering is blocked.
I think in general the idea is quite reasonable.
I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1751383 just in case we want to implement this.
@emilio
khushalsagar commentedon Aug 11, 2023
@smaug---- can you clarify the question. Did you mean the impact of resizing the window? As per the spec text here there's no rendering opportunities while we're blocked. So no events which happen during the rendering lifecycle run.
noamr commentedon Jan 8, 2024
Intending to amend the current spec for render-blocking scripts to also include inline scripts, see whatwg/html#10035
zcorpan commentedon Jan 9, 2024
I think this is reasonable and useful. My main concern is that it might be a bit too easy to block rendering on a
defer(ormodulewhich 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.zcorpan commentedon Jan 16, 2024
Filed whatwg/html#10068
I think that issue can be resolved without changes to how the feature works.
Suggest
positive.[-]Request for position: blocking="render" attribute on <link>, <script> and <style>[/-][+]blocking="render" attribute on <link>, <script> and <style>[/+]