Skip to content

Commit 9fe4fe1

Browse files
JeanMechecrisbeto
authored andcommitted
fix(material/schematics): don't add the preconnect for fonts (#28026)
(cherry picked from commit 395309b)
1 parent 7a42a5d commit 9fe4fe1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/material/schematics/ng-add/fonts/material-fonts.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,12 @@ export function addFontsToIndex(options: Schema): Rule {
2626
throw new SchematicsException('No project index HTML file could be found.');
2727
}
2828

29-
const preconnect = `<link rel="preconnect" href="https://fonts.gstatic.com">`;
3029
const fonts = [
3130
'https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap',
3231
'https://fonts.googleapis.com/icon?family=Material+Icons',
3332
];
3433

3534
projectIndexFiles.forEach(indexFilePath => {
36-
appendHtmlElementToHead(host, indexFilePath, preconnect);
37-
3835
fonts.forEach(font => {
3936
appendHtmlElementToHead(host, indexFilePath, `<link href="${font}" rel="stylesheet">`);
4037
});

0 commit comments

Comments
 (0)