From 29302e3baab74198323226e3c2d94f67e1ffa3f4 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Fri, 18 Jun 2021 11:29:59 +0300 Subject: [PATCH] fix(docs-infra): remove redundant `MatIcon` element (#42584) Previously, we included a dummy `MatIcon` element in `AppComponent` in order to ensure that the `Material Icons` font would be requested (and thus cached by the ServiceWorker) on every navigation. However, #41129 introduced the `ThemeToggleComponent`, which will be present on all pages (since it is located in the top-menu) and relies on the `Material Icons` font. Therefore, the work-around for loading the `Material Icons` font is no longer necessary. This commit removes the now redundant `MatIcon` from `AppComponent`. PR Close #42584 --- aio/src/app/app.component.html | 10 ---------- goldens/size-tracking/aio-payloads.json | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/aio/src/app/app.component.html b/aio/src/app/app.component.html index 7e8e1a94a1..3f045e4d18 100644 --- a/aio/src/app/app.component.html +++ b/aio/src/app/app.component.html @@ -70,13 +70,3 @@ - - -
-   -
diff --git a/goldens/size-tracking/aio-payloads.json b/goldens/size-tracking/aio-payloads.json index e9f5860454..d573cd0924 100755 --- a/goldens/size-tracking/aio-payloads.json +++ b/goldens/size-tracking/aio-payloads.json @@ -3,7 +3,7 @@ "master": { "uncompressed": { "runtime-es2017": 4619, - "main-es2017": 456646, + "main-es2017": 456422, "polyfills-es2017": 55210, "styles": 69324, "light-theme": 79417, @@ -15,7 +15,7 @@ "master": { "uncompressed": { "runtime-es2017": 4619, - "main-es2017": 456785, + "main-es2017": 456561, "polyfills-es2017": 55348, "styles": 69324, "light-theme": 79417,