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
Based on other threads, I think people are desiring for it to work anywhere, not only in the <head> like classic link stylesheet tags. This means there would need to be either a change to class non-module <link> stylesheet tag behavior, or it would need to be behavior difference only for link stylesheet tags with type="module".
<head><!-- blocking on classic stylesheet links works in <head> only. --><linkrel="stylesheet" href="foo.css" blocking="render" /></head><body><!-- with module stylesheet links, render blocking works anywhere: --><linkrel="stylesheet" href="module.css" blocking="render" /><div><!-- this doesn't get rendered until the sheet is loaded --><templateshadowrootmode="open"><linkrel="stylesheet" type="module" href="other.css" blocking="render" />
shadow content
</template></div></body>
This would make it useful for solving FOUC in a simple way, for example in streaming scenarios where enumerating the whole page content up front in the server is not desired, for example AI response streams where we can't wait for all content to be enumerated before sending it to the client.
There's some detail not mentioned about how to actually handle it. For example the parser still needs to remove <template> right after parsed, but rendering (including shadow root creation, or at least the creation of the shadow content) won't happen until after the stylesheet is fetched and ready.
Activity
trusktr commentedon Aug 8, 2026
Kurt Catti-Schmidt (@KurtCattiSchmidt)
KurtCattiSchmidt commentedon Aug 8, 2026
Joe Pea (@trusktr) - per the current spec'd behavior of
<link rel=stylesheet>,blockingis already supported on<link rel=stylesheet>, which this proposal would inherit: https://html.spec.whatwg.org/#attr-link-blocking.trusktr commentedon Aug 8, 2026
Based on other threads, I think people are desiring for it to work anywhere, not only in the
<head>like classic link stylesheet tags. This means there would need to be either a change to class non-module<link>stylesheet tag behavior, or it would need to be behavior difference only for link stylesheet tags withtype="module".This would make it useful for solving FOUC in a simple way, for example in streaming scenarios where enumerating the whole page content up front in the server is not desired, for example AI response streams where we can't wait for all content to be enumerated before sending it to the client.
I made a PR mentioning the difference: #1376
There's some detail not mentioned about how to actually handle it. For example the parser still needs to remove
<template>right after parsed, but rendering (including shadow root creation, or at least the creation of the shadow content) won't happen until after the stylesheet is fetched and ready.