Skip to content

Commit b2fabf0

Browse files
authored
Load script with the defer attribute (vercel#1437)
Load script with the defer attribute
1 parent ffade8d commit b2fabf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/document.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class NextScript extends Component {
6565
const hash = buildStats ? buildStats[filename].hash : '-'
6666

6767
return (
68-
<script type='text/javascript' src={`/_next/${hash}/${filename}`} />
68+
<script type='text/javascript' src={`/_next/${hash}/${filename}`} defer />
6969
)
7070
}
7171

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy