From f110f228ec7c67fcd3e6d1123cd34639222b7715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Kleppe-J=C3=B8rgensen?= Date: Tue, 3 May 2022 16:31:34 +0200 Subject: [PATCH 1/3] Improve wording --- docs/basic-features/script.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/script.md b/docs/basic-features/script.md index cb3905ce4800b..d8ef6c0aaf9c2 100644 --- a/docs/basic-features/script.md +++ b/docs/basic-features/script.md @@ -247,7 +247,7 @@ The `id` property is required for **inline scripts** in order for Next.js to tra ### Executing Code After Loading (`onLoad`) -> **Note: Both `onLoad` and `onError` can't be used with the `beforeInteractive` loading strategy.** +> **Note: Neither `onLoad` nor `onError` can't be used with the `beforeInteractive` loading strategy.** Some third-party scripts require users to run JavaScript code after the script has finished loading in order to instantiate content or call a function. If you are loading a script with either `afterInteractive` or `lazyOnload` as a loading strategy, you can execute code after it has loaded using the `onLoad` property: From e4271c9fcfc1138205f02cf7194a8161b1c4cac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Kleppe-J=C3=B8rgensen?= Date: Tue, 3 May 2022 17:04:35 +0200 Subject: [PATCH 2/3] Even more improved wording Just me forgetting to replace `can't` with `can`. Co-authored-by: Steven --- docs/basic-features/script.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/script.md b/docs/basic-features/script.md index d8ef6c0aaf9c2..b295b312377e2 100644 --- a/docs/basic-features/script.md +++ b/docs/basic-features/script.md @@ -247,7 +247,7 @@ The `id` property is required for **inline scripts** in order for Next.js to tra ### Executing Code After Loading (`onLoad`) -> **Note: Neither `onLoad` nor `onError` can't be used with the `beforeInteractive` loading strategy.** +> **Note: Neither `onLoad` nor `onError` can be used with the `beforeInteractive` loading strategy.** Some third-party scripts require users to run JavaScript code after the script has finished loading in order to instantiate content or call a function. If you are loading a script with either `afterInteractive` or `lazyOnload` as a loading strategy, you can execute code after it has loaded using the `onLoad` property: From 77dac3edf61a2096b8871fa21b24e4c43768d9ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Kleppe-J=C3=B8rgensen?= Date: Tue, 3 May 2022 23:46:08 +0200 Subject: [PATCH 3/3] Simplify wording --- docs/basic-features/script.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/script.md b/docs/basic-features/script.md index b295b312377e2..4491d251f3a42 100644 --- a/docs/basic-features/script.md +++ b/docs/basic-features/script.md @@ -247,7 +247,7 @@ The `id` property is required for **inline scripts** in order for Next.js to tra ### Executing Code After Loading (`onLoad`) -> **Note: Neither `onLoad` nor `onError` can be used with the `beforeInteractive` loading strategy.** +> **Note: `onLoad` and `onError` cannot be used with the `beforeInteractive` loading strategy.** Some third-party scripts require users to run JavaScript code after the script has finished loading in order to instantiate content or call a function. If you are loading a script with either `afterInteractive` or `lazyOnload` as a loading strategy, you can execute code after it has loaded using the `onLoad` property: