Skip to content

Commit

Permalink
feat(docs-infra): add swap to web fonts so downloading does not block…
Browse files Browse the repository at this point in the history
… rendering

Light house was reporting that 'Ensure text remains visible during webfont load' solution to this was adding & swap to the end o web fonts this leds to our first text showing before web-font download and improves the performance of out site link to article: https://web.dev/font-display/\?utm_source\=lighthouse\&utm_medium\=lr
  • Loading branch information
ajitsinghkaler committed Feb 12, 2020
1 parent eef047b commit 4d879e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aio/src/index.html
Expand Up @@ -20,9 +20,9 @@
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/images/favicons/favicon-144x144.png">

<!-- NOTE: These need to be kept in sync with `ngsw-config.json`. -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Droid+Sans+Mono">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Droid+Sans+Mono&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons&display=swap">
<!-- -->

<link rel="manifest" href="pwa-manifest.json">
Expand Down

0 comments on commit 4d879e9

Please sign in to comment.