Skip to content

Comments

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

Open
Raghuboi wants to merge 1 commit intoreactjs:mainfrom
Raghuboi:fix-script-async-defer-descriptions
Open

docs(react-dom): fix async and defer script attribute descriptions#7916
Raghuboi wants to merge 1 commit intoreactjs:mainfrom
Raghuboi:fix-script-async-defer-descriptions

Conversation

@Raghuboi
Copy link
Contributor

@Raghuboi Raghuboi commented Aug 15, 2025

Fixes #7328

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

@github-actions
Copy link

github-actions bot commented Aug 15, 2025

Size changes

Details

📦 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