Skip to content

Commit 3141b11

Browse files
committed
Improve website performance
- Progressive chunked data loading (newest releases first) - Loading indicator for partial and full loads - Pre-render markdown at load time, remove ngx-markdown dependency - OnPush change detection and trackBy on all components - Resource hints, non-blocking fonts, PWA service worker - Fix mobile navbar spacing Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
1 parent 0ac061a commit 3141b11

26 files changed

Lines changed: 552 additions & 1773 deletions

angular.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"assets": [
2222
"src/favicon.png",
2323
"src/assets",
24+
"src/manifest.webmanifest",
2425
{
2526
"glob": "about-modal-content.html",
2627
"input": "src/app/main",
@@ -45,6 +46,7 @@
4546
"outputHashing": "all",
4647
"sourceMap": false,
4748
"extractLicenses": true,
49+
"serviceWorker": "ngsw-config.json",
4850
"budgets": [
4951
{
5052
"type": "initial",

ngsw-config.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
3+
"index": "/index.html",
4+
"assetGroups": [
5+
{
6+
"name": "app",
7+
"installMode": "prefetch",
8+
"resources": {
9+
"files": ["/favicon.png", "/index.html", "/manifest.webmanifest", "/*.css", "/*.js"]
10+
}
11+
},
12+
{
13+
"name": "assets",
14+
"installMode": "lazy",
15+
"updateMode": "prefetch",
16+
"resources": {
17+
"files": ["/assets/**", "/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"]
18+
}
19+
}
20+
],
21+
"dataGroups": [
22+
{
23+
"name": "api-cdn",
24+
"urls": ["https://cdn.dl.k8s.io/**"],
25+
"cacheConfig": {
26+
"maxSize": 200,
27+
"maxAge": "1d",
28+
"strategy": "freshness"
29+
}
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)