Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit e4f4f68

Browse files
committed
Link to list of as values
1 parent 082beca commit e4f4f68

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ plugins: [
7777
]
7878
```
7979

80-
In case you need more fine-grained control of the `as` atribute, you could also provide a function here.
81-
When using it, entry name will be provided as the parameter, and function itself should return a
82-
string for `as` attribute:
80+
In case you need more fine-grained control of the `as` attribute, you could also
81+
provide a function here. When using it, entry name will be provided as the
82+
parameter, and function itself should return a string for `as` attribute:
8383

8484
```javascript
8585
plugins: [
@@ -96,8 +96,11 @@ plugins: [
9696
]
9797
```
9898

99-
Notice that if `as=font` is used in preload, crossorigin will be added, otherwise the font resource
100-
might be double fetched. Explains can be found in [this article](https://medium.com/reloading/preload-prefetch-and-priorities-in-chrome-776165961bbf).
99+
Notice that if `as=font` is used in preload, the `crossorigin` will also be
100+
added. Explains can be found in
101+
[this article](https://medium.com/reloading/preload-prefetch-and-priorities-in-chrome-776165961bbf),
102+
and a list of common `as` values can be
103+
[found on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content#What_types_of_content_can_be_preloaded).
101104

102105
By default, the plugin will assume async script chunks will be preloaded. This is the equivalent of:
103106

0 commit comments

Comments
 (0)