Skip to content

Allow render-blocking inline module scripts - #10035

Merged
domenic merged 3 commits into
whatwg:mainfrom
noamr:rbscript
Jan 18, 2024
Merged

domenic merged 3 commits into
whatwg:mainfrom
noamr:rbscript

Conversation

@noamr

@noamr noamr commented Jan 3, 2024 •

Copy link
Copy Markdown
Contributor

There is no reason to limit render-blocking to scripts with src only. A module/async/defer script with imports should behave just the same.

Closes #10034

(See WHATWG Working Mode: Changes for more details.)


/scripting.html ( diff )

@noamr noamr changed the title Allow render-blocking inline scripts Allow render-blocking inline module scripts Jan 10, 2024
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 10, 2024
Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 10, 2024
Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 10, 2024
Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 10, 2024
Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 15, 2024
Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718

@domenic domenic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with a nit.

There's a preexisting issue with a lack of document conformance requirements for blocking + script, but we can solve that separately. (I'll file a new issue for it.)

Comment thread source Resolved
@domenic
domenic merged commit 77bba4f into whatwg:main Jan 18, 2024
aarongable pushed a commit to chromium/chromium that referenced this pull request Jan 23, 2024
Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5184455
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1250749}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 23, 2024
Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5184455
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1250749}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 23, 2024
Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5184455
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1250749}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jan 29, 2024
…ipts, a=testonly

Automatic update from web-platform-tests
Enable render-blocking inline module scripts

Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5184455
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1250749}

--

wpt-commits: 9bb6e1dbfbadf85634936171144d8a9f17fc9f56
wpt-pr: 43919
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Feb 1, 2024
…ipts, a=testonly

Automatic update from web-platform-tests
Enable render-blocking inline module scripts

Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5184455
Reviewed-by: Kouhei Ueno <kouheichromium.org>
Commit-Queue: Noam Rosenthal <nrosenthalchromium.org>
Cr-Commit-Position: refs/heads/main{#1250749}

--

wpt-commits: 9bb6e1dbfbadf85634936171144d8a9f17fc9f56
wpt-pr: 43919

UltraBlame original commit: 17b42b2c3ac25e55c8c2d49f60701b30c17773e0
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Feb 1, 2024
…ipts, a=testonly

Automatic update from web-platform-tests
Enable render-blocking inline module scripts

Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5184455
Reviewed-by: Kouhei Ueno <kouheichromium.org>
Commit-Queue: Noam Rosenthal <nrosenthalchromium.org>
Cr-Commit-Position: refs/heads/main{#1250749}

--

wpt-commits: 9bb6e1dbfbadf85634936171144d8a9f17fc9f56
wpt-pr: 43919

UltraBlame original commit: 17b42b2c3ac25e55c8c2d49f60701b30c17773e0
marcoscaceres pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 23, 2024
Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5184455
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1250749}
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…ipts, a=testonly

Automatic update from web-platform-tests
Enable render-blocking inline module scripts

Inline module scripts need to behave like scripts with `src` in many
ways, e.g. if they have imports. Otherwise authors have to use a
fake `src` for artificial reasons.

This implements the spec PR:
whatwg/html#10035

Currently behind a flag (RenderBlockingInlineModuleScript)

Bug: 1514881
Change-Id: I8579d721adbf976a1d5e20d14abc6ef7252b0718
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5184455
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1250749}

--

wpt-commits: 9bb6e1dbfbadf85634936171144d8a9f17fc9f56
wpt-pr: 43919
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Render-blocking scripts should also work for inline scripts

2 participants