Skip to content

docs(react-dom): fix async and defer script attribute descriptions #7916

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Raghuboi
Copy link

@Raghuboi Raghuboi commented Aug 15, 2025

Fixes #7328

Clarifies technical descriptions of HTML async and defer script attributes in the <script> component documentation.

Copy link

github-actions bot commented Aug 15, 2025

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

- Fix async: was incorrectly described as deferring execution (defer behavior)
  Now correctly: fetched in parallel, evaluated as soon as available (out of order)
- Fix defer: was incorrectly typed as string, now boolean
  Clarified: fetched in parallel, executed after document loads (in order)

Fixes reactjs#7328
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Typo]: definitions of async/defer in the script tag documentation are incorrect
1 participant