From 7904cb4181e6a35d405eec5f59d86aa7d5fd2b00 Mon Sep 17 00:00:00 2001 From: Nexos Creator <112468782+nexoscreator@users.noreply.github.com> Date: Thu, 13 Feb 2025 21:42:00 +0530 Subject: [PATCH] docs: clarify default script attributes and async behavior - 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. --- docs/content/docs/1.guides/0.key-concepts.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/1.guides/0.key-concepts.md b/docs/content/docs/1.guides/0.key-concepts.md index 2ba1d964..239cf875 100644 --- a/docs/content/docs/1.guides/0.key-concepts.md +++ b/docs/content/docs/1.guides/0.key-concepts.md @@ -39,12 +39,14 @@ to the hydration process. Instead, scripts are loaded by default when Nuxt is fu You can change this behavior by modifying the [defaultScriptOptions](/docs/api/nuxt-config#defaultscriptoptions). -Nuxt Scripts will also insert several extra tags to the script element to help with performance and privacy. +Nuxt Scripts will also insert several extra tags to the `