File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99| 1.0.0 => | 7.0.0-preview.4 => | .NET 7 & NET 8 |
1010
1111
12- To use the icons in your MudBlazor project while reducing first-load flicker, preload the Material Icons font files before loading the stylesheet:
12+ To use the icons in your MudBlazor project while reducing first-load flicker, preload only the font variants you use before loading the stylesheet:
1313
1414``` html
1515<link rel =" preload"
1616 href =" _content/MudBlazor.FontIcons.MaterialIcons/font/MaterialIcons.woff2"
1717 as =" font"
1818 type =" font/woff2"
1919 crossorigin >
20- <link rel =" preload"
21- href =" _content/MudBlazor.FontIcons.MaterialIcons/font/MaterialIconsOutlined.woff2"
22- as =" font"
23- type =" font/woff2"
24- crossorigin >
25- <link rel =" preload"
26- href =" _content/MudBlazor.FontIcons.MaterialIcons/font/MaterialIconsRound.woff2"
27- as =" font"
28- type =" font/woff2"
29- crossorigin >
30- <link rel =" preload"
31- href =" _content/MudBlazor.FontIcons.MaterialIcons/font/MaterialIconsSharp.woff2"
32- as =" font"
33- type =" font/woff2"
34- crossorigin >
35- <link rel =" preload"
36- href =" _content/MudBlazor.FontIcons.MaterialIcons/font/MaterialIconsTwoTone.woff2"
37- as =" font"
38- type =" font/woff2"
39- crossorigin >
4020<link href =" _content/MudBlazor.FontIcons.MaterialIcons/css/font.min.css" rel =" stylesheet" />
4121```
4222
23+ Other available variants that can be preloaded as needed:
24+ - ` _content/MudBlazor.FontIcons.MaterialIcons/font/MaterialIconsOutlined.woff2 `
25+ - ` _content/MudBlazor.FontIcons.MaterialIcons/font/MaterialIconsRound.woff2 `
26+ - ` _content/MudBlazor.FontIcons.MaterialIcons/font/MaterialIconsSharp.woff2 `
27+ - ` _content/MudBlazor.FontIcons.MaterialIcons/font/MaterialIconsTwoTone.woff2 `
28+
4329Alternatively, you can use the following CDN links:
4430
4531``` html
You can’t perform that action at this time.
0 commit comments