Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow render-blocking inline module scripts #10035

Merged
merged 3 commits into from
Jan 18, 2024
Merged

Conversation

noamr
Copy link
Collaborator

@noamr noamr commented Jan 3, 2024

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
Copy link
Member

@domenic domenic left a comment

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.)

@domenic domenic merged commit 77bba4f into whatwg:main Jan 18, 2024
2 checks passed
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 <[email protected]>
Commit-Queue: Noam Rosenthal <[email protected]>
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 <[email protected]>
Commit-Queue: Noam Rosenthal <[email protected]>
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 <[email protected]>
Commit-Queue: Noam Rosenthal <[email protected]>
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 <[email protected]>
Commit-Queue: Noam Rosenthal <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1250749}

--

wpt-commits: 9bb6e1dbfbadf85634936171144d8a9f17fc9f56
wpt-pr: 43919
ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this pull request Jan 30, 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 <[email protected]>
Commit-Queue: Noam Rosenthal <[email protected]>
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 <[email protected]>
Commit-Queue: Noam Rosenthal <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1250749}
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