This repository was archived by the owner on Jan 21, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ plugins: [
77
77
]
78
78
```
79
79
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:
83
83
84
84
``` javascript
85
85
plugins: [
@@ -96,8 +96,11 @@ plugins: [
96
96
]
97
97
```
98
98
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 ) .
101
104
102
105
By default, the plugin will assume async script chunks will be preloaded. This is the equivalent of:
103
106
You can’t perform that action at this time.
0 commit comments