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

docs: clarify async behavior and default script attributes #390

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

nexoscreator
Copy link
Contributor

πŸ”— Linked issue

Resolves #304 : Some users expected async to be applied by default, leading to confusion. This update makes the behavior explicit.

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

  • Updated documentation to clarify that async is not applied by default because defer is used.
  • Added a note explaining how to explicitly enable async by disabling defer.
  • Improved readability of default script attributes section.

- Updated documentation to clarify that `async` is not applied by default  
  because `defer` is used.  
- Added a note explaining how to explicitly enable `async` by disabling `defer`.  
- Improved readability of default script attributes section.
Copy link

vercel bot commented Feb 13, 2025

@nexoscreator is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@harlan-zw
Copy link
Collaborator

Thanks, this is an improvement but there's still some issues, like fetchpriority is conditional added based on the trigger but let's go with this for now.

@harlan-zw harlan-zw merged commit d58587f into nuxt:main Feb 14, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documented default script attributes vary from actual
2 participants