1
0
Fork 0
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:
Arunoda Susiripala 2017-03-19 18:46:50 +05:30 committed by GitHub
parent ffade8d5ac
commit b2fabf0fe0

View file

@ -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 />
)
}