mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Fixes dynamic chunks preload links, use href
instead of src
(#5047)
😬... https://w3c.github.io/preload/
This commit is contained in:
parent
d0df0e497b
commit
015b0a9d22
|
@ -70,7 +70,7 @@ export class Head extends Component {
|
|||
return <link
|
||||
rel='preload'
|
||||
key={bundle.file}
|
||||
src={`${assetPrefix}/_next/${bundle.file}`}
|
||||
href={`${assetPrefix}/_next/${bundle.file}`}
|
||||
as='script'
|
||||
nonce={this.props.nonce}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue