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: fix typo in next/script #26518

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions docs/basic-features/script.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ function Home() {

```js
import Script from 'next/script'
;<Script

<Script
src="https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserverEntry%2CIntersectionObserver"
strategy="beforeInteractive"
/>
Expand All @@ -79,7 +80,8 @@ import Script from 'next/script'

```js
import Script from 'next/script'
;<Script

<Script
src="https://connect.facebook.net/en_US/sdk.js"
strategy="lazyOnload"
/>
Expand All @@ -89,7 +91,8 @@ import Script from 'next/script'

```js
import Script from 'next/script'
;<Script

<Script
id="stripe-js"
src="https://js.stripe.com/v3/"
onLoad={() => {
Expand Down Expand Up @@ -120,7 +123,8 @@ import Script from 'next/script'

```js
import Script from 'next/script'
;<Script

<Script
src="https://www.google-analytics.com/analytics.js"
id="analytics"
nonce="XUENAJFW"
Expand Down