Skip to content

Commit c2d0b88

Browse files
authored
docs: use href attribute for link with rel=modulepreload (#16279)
1 parent 1d9a042 commit c2d0b88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guide/backend-integration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ If you need a custom integration, you can follow the steps in this guide to conf
108108
<script type="module" src="/{{ manifest[name].file }}"></script>
109109

110110
<!-- for chunk of importedChunks(manifest, name) -->
111-
<link rel="modulepreload" src="/{{ chunk.file }}" />
111+
<link rel="modulepreload" href="/{{ chunk.file }}" />
112112
```
113113

114114
Specifically, a backend generating HTML should include the following tags given a manifest
@@ -129,7 +129,7 @@ If you need a custom integration, you can follow the steps in this guide to conf
129129
<link rel="stylesheet" href="assets/shared.a834bfc3.css" />
130130
<script type="module" src="assets/main.4889e940.js"></script>
131131
<!-- optional -->
132-
<link rel="modulepreload" src="assets/shared.83069a53.js" />
132+
<link rel="modulepreload" href="assets/shared.83069a53.js" />
133133
```
134134

135135
While the following should be included for the entry point `views/foo.js`:
@@ -138,5 +138,5 @@ If you need a custom integration, you can follow the steps in this guide to conf
138138
<link rel="stylesheet" href="assets/shared.a834bfc3.css" />
139139
<script type="module" src="assets/foo.869aea0d.js"></script>
140140
<!-- optional -->
141-
<link rel="modulepreload" src="assets/shared.83069a53.js" />
141+
<link rel="modulepreload" href="assets/shared.83069a53.js" />
142142
```

0 commit comments

Comments
 (0)