Commit b2fabf0f authored by Arunoda Susiripala's avatar Arunoda Susiripala Committed by GitHub

Load script with the defer attribute (#1437)

Load script with the defer attribute
parent ffade8d5
......@@ -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 />
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment