Skip to content

Conversation

@miketheman
Copy link
Member

Replace using async with defer to allow parallel download of JavaScript without blocking the parser.
Now script will run after DOM is parsed.

Refs: https://html.spec.whatwg.org/multipage/scripting.html#attr-script-defer
Refs: https://caniuse.com/script-defer

@miketheman miketheman added the javascript requires change to JavaScript files label Nov 3, 2025
@miketheman miketheman marked this pull request as ready for review November 4, 2025 13:11
@miketheman miketheman requested a review from a team as a code owner November 4, 2025 13:11
Replace using `async` with `defer` to allow parallel download of
JavaScript without blocking the parser.
Now script will run after DOM is parsed.

Refs: https://html.spec.whatwg.org/multipage/scripting.html#attr-script-defer
Refs: https://caniuse.com/script-defer

Signed-off-by: Mike Fiedler <[email protected]>
Signed-off-by: Mike Fiedler <[email protected]>
@miketheman miketheman force-pushed the miketheman/idea-js-defer-all branch from 2aa93e2 to 6ddea19 Compare November 4, 2025 14:57
@miketheman miketheman enabled auto-merge (squash) November 4, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript requires change to JavaScript files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant