Commit 015b0a9d authored by Faris Abusada's avatar Faris Abusada Committed by Tim Neutkens

Fixes dynamic chunks preload links, use `href` instead of `src` (#5047)

😬... 

https://w3c.github.io/preload/
parent d0df0e49
...@@ -70,7 +70,7 @@ export class Head extends Component { ...@@ -70,7 +70,7 @@ export class Head extends Component {
return <link return <link
rel='preload' rel='preload'
key={bundle.file} key={bundle.file}
src={`${assetPrefix}/_next/${bundle.file}`} href={`${assetPrefix}/_next/${bundle.file}`}
as='script' as='script'
nonce={this.props.nonce} nonce={this.props.nonce}
/> />
......
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