Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit ed29085

Browse files
crisbetojelbourn
authored andcommitted
chore: set display when loading fonts (#602)
Along the same lines as angular/components#16093. Sets the `display` parameter when loading fonts for better control over how they're loaded.
1 parent 13c76b1 commit ed29085

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/assets/stackblitz/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
1+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons&display=block" rel="stylesheet">
22
<div class="mat-app-background basic-container">
33
<material-docs-example>loading</material-docs-example>
44
</div>
5-
<span class="version-info">Current build: {{version}}</span>
5+
<span class="version-info">Current build: {{version}}</span>

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<link rel="icon" type="image/png" href="assets/img/favicons/android-chrome-192x192.png"
1818
sizes="192x192">
1919
<link rel="manifest" href="assets/img/favicons/manifest.json">
20-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
21-
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Mono:300" rel="stylesheet">
20+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons&display=block" rel="stylesheet">
21+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Mono:300&display=swap" rel="stylesheet">
2222
</head>
2323

2424
<body class="docs-app-background">

0 commit comments

Comments
 (0)