mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Load script with the defer attribute (#1437)
Load script with the defer attribute
This commit is contained in:
parent
ffade8d5ac
commit
b2fabf0fe0
|
@ -65,7 +65,7 @@ export class NextScript extends Component {
|
|||
const hash = buildStats ? buildStats[filename].hash : '-'
|
||||
|
||||
return (
|
||||
<script type='text/javascript' src={`/_next/${hash}/${filename}`} />
|
||||
<script type='text/javascript' src={`/_next/${hash}/${filename}`} defer />
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue