From 037ee34dde1d39f45ecd205dffbed4c2585e699b Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Sat, 14 Jul 2018 14:13:53 -0400 Subject: [PATCH] Prefetch external assets for caching --- ngsw-config.json | 9 ++++++++- src/app/about/about.component.html | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ngsw-config.json b/ngsw-config.json index 755b352..0c7810a 100644 --- a/ngsw-config.json +++ b/ngsw-config.json @@ -13,7 +13,14 @@ "installMode": "lazy", "updateMode": "prefetch", "resources": { - "files": ["/assets/**"], + "files": ["/assets/**"] + } + }, + { + "name": "external assets", + "installMode": "prefetch", + "updateMode": "prefetch", + "resources": { "urls": [ "https://firebasestorage.googleapis.com/v0/b/fhsons-7e90b.appspot.com/o/**", "https://use.fontawesome.com/releases/v5.1.0/css/all.css", diff --git a/src/app/about/about.component.html b/src/app/about/about.component.html index 6e224c7..77d38d3 100644 --- a/src/app/about/about.component.html +++ b/src/app/about/about.component.html @@ -1,7 +1,7 @@
- +

40 Years of Excellence


FH & Sons has been in business for 40 years. We have been ISO 9001:2000 certified since May 2000. Our