From a1149f0d6cdfef32f7cf8bdf04f67a3385f3ef85 Mon Sep 17 00:00:00 2001 From: cesnimda Date: Tue, 17 Nov 2026 20:24:53 +0100 Subject: [PATCH] docs: measure font request elimination and preserved typography --- .../performance/font-startup/QUALIFICATION.md | 13 + .../evidence/SOURCE_RECEIPTS.json | 73 ++++ .../evidence/font-startup-after.json | 170 +++++++++ .../evidence/font-startup-after.json.gz | Bin 0 -> 501 bytes .../evidence/font-startup-after.txt | Bin 0 -> 124 bytes .../evidence/font-startup-after.txt.gz | Bin 0 -> 100 bytes .../evidence/font-startup-before.json | 322 ++++++++++++++++++ .../evidence/font-startup-before.json.gz | Bin 0 -> 666 bytes .../evidence/font-startup-before.txt | Bin 0 -> 126 bytes .../evidence/font-startup-before.txt.gz | Bin 0 -> 101 bytes .../evidence/font-startup-build.txt | Bin 0 -> 1200 bytes .../evidence/font-startup-build.txt.gz | Bin 0 -> 487 bytes .../evidence/font-startup-comparison.json | 9 + .../evidence/font-startup-comparison.json.gz | Bin 0 -> 197 bytes .../evidence/font-startup-lint.txt | 0 .../evidence/font-startup-lint.txt.gz | Bin 0 -> 20 bytes .../evidence/font-startup-probe.mjs.txt | 51 +++ .../evidence/font-startup-probe.mjs.txt.gz | Bin 0 -> 1753 bytes .../font-startup-tracking-canary-PILOT.json | 116 +++++++ ...font-startup-tracking-canary-PILOT.json.gz | Bin 0 -> 502 bytes .../evidence/font-startup-tracking-canary.txt | Bin 0 -> 280 bytes .../font-startup-tracking-canary.txt.gz | Bin 0 -> 175 bytes 22 files changed, 754 insertions(+) create mode 100644 docs/performance/font-startup/QUALIFICATION.md create mode 100644 docs/performance/font-startup/evidence/SOURCE_RECEIPTS.json create mode 100644 docs/performance/font-startup/evidence/font-startup-after.json create mode 100644 docs/performance/font-startup/evidence/font-startup-after.json.gz create mode 100644 docs/performance/font-startup/evidence/font-startup-after.txt create mode 100644 docs/performance/font-startup/evidence/font-startup-after.txt.gz create mode 100644 docs/performance/font-startup/evidence/font-startup-before.json create mode 100644 docs/performance/font-startup/evidence/font-startup-before.json.gz create mode 100644 docs/performance/font-startup/evidence/font-startup-before.txt create mode 100644 docs/performance/font-startup/evidence/font-startup-before.txt.gz create mode 100644 docs/performance/font-startup/evidence/font-startup-build.txt create mode 100644 docs/performance/font-startup/evidence/font-startup-build.txt.gz create mode 100644 docs/performance/font-startup/evidence/font-startup-comparison.json create mode 100644 docs/performance/font-startup/evidence/font-startup-comparison.json.gz create mode 100644 docs/performance/font-startup/evidence/font-startup-lint.txt create mode 100644 docs/performance/font-startup/evidence/font-startup-lint.txt.gz create mode 100644 docs/performance/font-startup/evidence/font-startup-probe.mjs.txt create mode 100644 docs/performance/font-startup/evidence/font-startup-probe.mjs.txt.gz create mode 100644 docs/performance/font-startup/evidence/font-startup-tracking-canary-PILOT.json create mode 100644 docs/performance/font-startup/evidence/font-startup-tracking-canary-PILOT.json.gz create mode 100644 docs/performance/font-startup/evidence/font-startup-tracking-canary.txt create mode 100644 docs/performance/font-startup/evidence/font-startup-tracking-canary.txt.gz diff --git a/docs/performance/font-startup/QUALIFICATION.md b/docs/performance/font-startup/QUALIFICATION.md new file mode 100644 index 00000000..d798fae5 --- /dev/null +++ b/docs/performance/font-startup/QUALIFICATION.md @@ -0,0 +1,13 @@ +# PERF-16: remove unused font startup requests + +Baseline `b1e79a56`, branch codex/perf-font-startup, E:/Storage/Projects/Active/temp docs/jobjakt-local-build/next-security-patch. Source `ade8b08`. Scope: three font link elements in root layout only. No dependency/file deletion, replacement font, CSS/theme/renderer redesign or new external service. + +Repository source inventory found Archivo only in the root stylesheet URL, with no application font consumer. Current theme uses Trebuchet MS/system fonts; code/native controls retain their established stacks. A controlled built-app probe observed Trebuchet/system and Arial, never Archivo, across390/1440 widths, EN/NB, light/dark (eight states). All API responses were synthetic, external stylesheet intercepted with inert CSS; no request was sent to Google. + +Removed the unused Archivo stylesheet and its Google API/static preconnect hints. Next also stops emitting its automatic stylesheet preload. Paired after-build probe PASSED eight states: one external stylesheet request per page becomes zero (eight to zero in the sample); four font-related head links become zero. Computed font-family sets, heading text/dimensions and overflow results are identical for every pair. This establishes request elimination and retained sampled typography, not real-network latency, saved live font bytes, European TTFB or a whole-product performance result. Initial probe incorrectly expected three generated links; corrected after inspecting Next's generated fourth preload, before changing application source. + +PASSED: ordinary Next16.4.6 build/TypeScript/static export (also includes prior interview-add source), scoped layout lint, source diff check, paired browser assertions. Existing tracking pilot PASSED two EN/light journeys at320/1440, eight axe scans/captures, fixture previews/writes only. This is a canary, not a replacement for the preceding36/144 matrix or whole-application regression. Prior full Jest's two stale-label defects and focused correction remain recorded separately. No new backend/full-Jest/native-device/AT/provider/model/PDF/security/recovery/release qualification. + +Earlier framework qualification described blocked Google Fonts as potential intended-font substitution. Current computed-font/source evidence narrows that interpretation: Archivo was unused, so blocking it did not change the observed application typography. Intended visual acceptance against A3 and native font availability still need their independent review. Physical document/PDF font rendering is untouched. + +Evidence: [source and native receipts](evidence/SOURCE_RECEIPTS.json), paired probe source archived as text and assert-bearing before/after/comparison outputs. No production requests or deployment. Rollback is restoring these three layout links in a dedicated revert and rebuilding; existing theme/bootstrap/auth order remains unchanged. PERF-16 remains PARTIAL for other startup/loading/performance/device qualification, and final A3/security/release gates remain open. diff --git a/docs/performance/font-startup/evidence/SOURCE_RECEIPTS.json b/docs/performance/font-startup/evidence/SOURCE_RECEIPTS.json new file mode 100644 index 00000000..b1330503 --- /dev/null +++ b/docs/performance/font-startup/evidence/SOURCE_RECEIPTS.json @@ -0,0 +1,73 @@ +{ + "baseline": "b1e79a5679161f593263339dcc15ceb0ab92009a", + "sourceCommit": "ade8b08", + "sourceSha256Lf": { + "job-tracker-ui/app/layout.tsx": "d2e460998e4182f11657089850f9144059f453ebd9c4d1fbcd3f6aee25449843", + "job-tracker-ui/src/theme.ts": "6b3c28a2a920e53e01ed9ee12ee2f5cdaa0fe7c3752415a97ca544c82fce8cfa", + "job-tracker-ui/src/ThemeProvider.tsx": "1d25fd091ca632f7671e413db24e917d4ca4a375fddade0ca1ff397a8ae9f950", + "job-tracker-ui/src/index.css": "daf22c296c801d3d533083361cc59fbdc22e5bfe528aa4bad1973b54cc5448a4", + "job-tracker-ui/package-lock.json": "3e7d849d75a7bffdbdac30990d003ebe079f649679e3add210d6f0bb323a17b9" + }, + "nativeReceipts": [ + { + "path": "font-startup-probe.mjs.txt", + "lfSha256": "59bc6af451b5e22722f89f73bf9cea722fdd53a3b6f337705b6c5bf04092d316", + "rawSha256": "59bc6af451b5e22722f89f73bf9cea722fdd53a3b6f337705b6c5bf04092d316", + "gzipSha256": "d424e61aea36361407de2fc9d9de4ebc975b51713f60ef99b078b6a8b7166f28" + }, + { + "path": "font-startup-before.json", + "lfSha256": "db7bd746ea6a5d3ee3e200b01c9d7a60fa99794be9ebb55ce85afbbea4b6b704", + "rawSha256": "db7bd746ea6a5d3ee3e200b01c9d7a60fa99794be9ebb55ce85afbbea4b6b704", + "gzipSha256": "d0bdbc996ecaed0e2302b263c549247f52500e2813c0af4b3347322d9ba8da4e" + }, + { + "path": "font-startup-before.txt", + "lfSha256": "410b887c27f899cc8f88af8e64aac7c9fffca87d4149887f94db6146b3e27c93", + "rawSha256": "410b887c27f899cc8f88af8e64aac7c9fffca87d4149887f94db6146b3e27c93", + "gzipSha256": "36f2e2d6a949ccccf309bc13fd0a51a36699df993c3031b8d2542b66a140d708" + }, + { + "path": "font-startup-after.json", + "lfSha256": "9e8c48e88a57c6938b84abbde290d3f52cc7a94359cdaca6b7fea48d6d0ae0a8", + "rawSha256": "9e8c48e88a57c6938b84abbde290d3f52cc7a94359cdaca6b7fea48d6d0ae0a8", + "gzipSha256": "291c40d49308bfc9713ae9c08e35059391c2da9d3971a57c6690fdbd23916a61" + }, + { + "path": "font-startup-after.txt", + "lfSha256": "793d8785f1689d4da4da1eb53c6a34e7ddc2279ccac67ab7c5ad1558c04e3fa7", + "rawSha256": "793d8785f1689d4da4da1eb53c6a34e7ddc2279ccac67ab7c5ad1558c04e3fa7", + "gzipSha256": "78076081f5129cd7e64a4b24bba9d830494504b245aa1c88e30366a97cb84740" + }, + { + "path": "font-startup-comparison.json", + "lfSha256": "f63c90ff0b65daf0f98d343e6aa0272f624dfd753a5daab7e4217b727f5641b1", + "rawSha256": "54e11edeaed7a1aee81d72ddba22a9a26c679aef229709daeba79de59c195671", + "gzipSha256": "7d4e734ea05501a38a3ef781a529587d068c130c476df1b1b242ec964623a428" + }, + { + "path": "font-startup-build.txt", + "lfSha256": "528d1e031465906c2c432291b58ed38158c2f52a2055dbc13d4611a545afa8aa", + "rawSha256": "528d1e031465906c2c432291b58ed38158c2f52a2055dbc13d4611a545afa8aa", + "gzipSha256": "fbb85fb057debb7ef527dd456ce83946516e8496b70ad91a704a739d1016f9a9" + }, + { + "path": "font-startup-lint.txt", + "lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e" + }, + { + "path": "font-startup-tracking-canary.txt", + "lfSha256": "70bc6be58390a0d28b50ae1bd1fc3a49a1e7b4df8c6c56bb3bcb26bb41365b1c", + "rawSha256": "70bc6be58390a0d28b50ae1bd1fc3a49a1e7b4df8c6c56bb3bcb26bb41365b1c", + "gzipSha256": "d27db4e0c62fecb3d5a4ce6bb99f3cae760cd3d5b12cd100aaa77d2afabd6b1d" + }, + { + "path": "font-startup-tracking-canary-PILOT.json", + "lfSha256": "a5a3f9bcbd4e351508dc29a1e82a16e29e91896c019abb30e94f544fa15c37ed", + "rawSha256": "a5a3f9bcbd4e351508dc29a1e82a16e29e91896c019abb30e94f544fa15c37ed", + "gzipSha256": "33c18eeaa61ff6367c7ceaae92f5320dd053d66b28bbe2e1293c188911b9b6ed" + } + ] +} diff --git a/docs/performance/font-startup/evidence/font-startup-after.json b/docs/performance/font-startup/evidence/font-startup-after.json new file mode 100644 index 00000000..a39d4b15 --- /dev/null +++ b/docs/performance/font-startup/evidence/font-startup-after.json @@ -0,0 +1,170 @@ +{ + "phase": "after", + "limits": [ + "Synthetic API only", + "External font stylesheet replaced with inert CSS; no Google request sent", + "Request count and typography are observed; no live-network latency claim" + ], + "states": [ + { + "width": 390, + "language": "en", + "mode": "light", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [], + "heading": { + "text": "Discover jobs", + "width": 358, + "height": 35, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [], + "errors": [], + "writes": [] + }, + { + "width": 390, + "language": "en", + "mode": "dark", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [], + "heading": { + "text": "Discover jobs", + "width": 358, + "height": 35, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [], + "errors": [], + "writes": [] + }, + { + "width": 390, + "language": "nb", + "mode": "light", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [], + "heading": { + "text": "Finn jobber", + "width": 358, + "height": 35, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [], + "errors": [], + "writes": [] + }, + { + "width": 390, + "language": "nb", + "mode": "dark", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [], + "heading": { + "text": "Finn jobber", + "width": 358, + "height": 35, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [], + "errors": [], + "writes": [] + }, + { + "width": 1440, + "language": "en", + "mode": "light", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [], + "heading": { + "text": "Discover jobs", + "width": 1122, + "height": 40, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [], + "errors": [], + "writes": [] + }, + { + "width": 1440, + "language": "en", + "mode": "dark", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [], + "heading": { + "text": "Discover jobs", + "width": 1122, + "height": 40, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [], + "errors": [], + "writes": [] + }, + { + "width": 1440, + "language": "nb", + "mode": "light", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [], + "heading": { + "text": "Finn jobber", + "width": 1122, + "height": 40, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [], + "errors": [], + "writes": [] + }, + { + "width": 1440, + "language": "nb", + "mode": "dark", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [], + "heading": { + "text": "Finn jobber", + "width": 1122, + "height": 40, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [], + "errors": [], + "writes": [] + } + ] +} \ No newline at end of file diff --git a/docs/performance/font-startup/evidence/font-startup-after.json.gz b/docs/performance/font-startup/evidence/font-startup-after.json.gz new file mode 100644 index 0000000000000000000000000000000000000000..9aca310e97e80689d14627219157a58fc333069f GIT binary patch literal 501 zcmVv+x z_N3XU+W(GivPnQlfT%c7Un=>rJ@LGHlvq8k09addi|i>dUJ@F%_DqUKkah5r8@X{h zD5{Y}4p;B5K`S|gb#CV6t=puygi?}Z(S5y}k>$E`^|&g4hE`XGxAg$rAn44ZIbabANpZkLA@$nqL2^Qs50FbP z8s^IFLNAsapL;omU&nh3kooUjZzCn5Ld2@J&9s0Q| zBe-;>xUz{$K$O!l+#|yz8^^o39ijH&a5Jir7eZAI9_Q_Zx8&PXyCI;d0BtT z>e1r`tue&m@q&g>24C)91u;JRZfer^P)gmqLzG-voF;Iz_4`cF7;S#YsW)P@X17`t z|0{b6ZuU{0D9%|Zf8wPl>T?2p;oW^7wy$R(D?ka>N~n;1U1;B`Ng9 literal 0 HcmV?d00001 diff --git a/docs/performance/font-startup/evidence/font-startup-after.txt b/docs/performance/font-startup/evidence/font-startup-after.txt new file mode 100644 index 0000000000000000000000000000000000000000..80df9da88753b70ff5241db8b37223bf8d16fd5f GIT binary patch literal 124 zcmXYp%L#xm5JcZuu!j`j!K2ts&=rLc)I`wc)gk0C%Y65HJqsD*WW+HDN!k}L(Mk8h lMy#z#-M#QxzHwJSY7^@E5i|W+bxpa`cjMqHZdTIL@B=@97%2b% literal 0 HcmV?d00001 diff --git a/docs/performance/font-startup/evidence/font-startup-after.txt.gz b/docs/performance/font-startup/evidence/font-startup-after.txt.gz new file mode 100644 index 0000000000000000000000000000000000000000..386d63059bc7748944771d7d7d2df5da60f8e4f5 GIT binary patch literal 100 zcmb2|=3oE;CNAA>N3I3~0p{mAKicgMG`oK^cMTU=vSRIm`Qgbg6%}XR-P510lqmDX z!b)@1?=wohRoc2OpG;3|pW|NmSj#43^R%yPzpPK+xzhS>?_A@{Dpx~l+Ly)Lr~#S{ E0H7x;kN^Mx literal 0 HcmV?d00001 diff --git a/docs/performance/font-startup/evidence/font-startup-before.json b/docs/performance/font-startup/evidence/font-startup-before.json new file mode 100644 index 00000000..7889fc2e --- /dev/null +++ b/docs/performance/font-startup/evidence/font-startup-before.json @@ -0,0 +1,322 @@ +{ + "phase": "before", + "limits": [ + "Synthetic API only", + "External font stylesheet replaced with inert CSS; no Google request sent", + "Request count and typography are observed; no live-network latency claim" + ], + "states": [ + { + "width": 390, + "language": "en", + "mode": "light", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [ + { + "rel": "preload", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + }, + { + "rel": "preconnect", + "href": "https://fonts.googleapis.com/" + }, + { + "rel": "preconnect", + "href": "https://fonts.gstatic.com/" + }, + { + "rel": "stylesheet", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + } + ], + "heading": { + "text": "Discover jobs", + "width": 358, + "height": 35, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [ + "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + ], + "errors": [], + "writes": [] + }, + { + "width": 390, + "language": "en", + "mode": "dark", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [ + { + "rel": "preload", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + }, + { + "rel": "preconnect", + "href": "https://fonts.googleapis.com/" + }, + { + "rel": "preconnect", + "href": "https://fonts.gstatic.com/" + }, + { + "rel": "stylesheet", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + } + ], + "heading": { + "text": "Discover jobs", + "width": 358, + "height": 35, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [ + "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + ], + "errors": [], + "writes": [] + }, + { + "width": 390, + "language": "nb", + "mode": "light", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [ + { + "rel": "preload", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + }, + { + "rel": "preconnect", + "href": "https://fonts.googleapis.com/" + }, + { + "rel": "preconnect", + "href": "https://fonts.gstatic.com/" + }, + { + "rel": "stylesheet", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + } + ], + "heading": { + "text": "Finn jobber", + "width": 358, + "height": 35, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [ + "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + ], + "errors": [], + "writes": [] + }, + { + "width": 390, + "language": "nb", + "mode": "dark", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [ + { + "rel": "preload", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + }, + { + "rel": "preconnect", + "href": "https://fonts.googleapis.com/" + }, + { + "rel": "preconnect", + "href": "https://fonts.gstatic.com/" + }, + { + "rel": "stylesheet", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + } + ], + "heading": { + "text": "Finn jobber", + "width": 358, + "height": 35, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [ + "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + ], + "errors": [], + "writes": [] + }, + { + "width": 1440, + "language": "en", + "mode": "light", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [ + { + "rel": "preload", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + }, + { + "rel": "preconnect", + "href": "https://fonts.googleapis.com/" + }, + { + "rel": "preconnect", + "href": "https://fonts.gstatic.com/" + }, + { + "rel": "stylesheet", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + } + ], + "heading": { + "text": "Discover jobs", + "width": 1122, + "height": 40, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [ + "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + ], + "errors": [], + "writes": [] + }, + { + "width": 1440, + "language": "en", + "mode": "dark", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [ + { + "rel": "preload", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + }, + { + "rel": "preconnect", + "href": "https://fonts.googleapis.com/" + }, + { + "rel": "preconnect", + "href": "https://fonts.gstatic.com/" + }, + { + "rel": "stylesheet", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + } + ], + "heading": { + "text": "Discover jobs", + "width": 1122, + "height": 40, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [ + "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + ], + "errors": [], + "writes": [] + }, + { + "width": 1440, + "language": "nb", + "mode": "light", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [ + { + "rel": "preload", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + }, + { + "rel": "preconnect", + "href": "https://fonts.googleapis.com/" + }, + { + "rel": "preconnect", + "href": "https://fonts.gstatic.com/" + }, + { + "rel": "stylesheet", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + } + ], + "heading": { + "text": "Finn jobber", + "width": 1122, + "height": 40, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [ + "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + ], + "errors": [], + "writes": [] + }, + { + "width": 1440, + "language": "nb", + "mode": "dark", + "families": [ + "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif", + "Arial" + ], + "links": [ + { + "rel": "preload", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + }, + { + "rel": "preconnect", + "href": "https://fonts.googleapis.com/" + }, + { + "rel": "preconnect", + "href": "https://fonts.gstatic.com/" + }, + { + "rel": "stylesheet", + "href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + } + ], + "heading": { + "text": "Finn jobber", + "width": 1122, + "height": 40, + "family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" + }, + "overflow": false, + "external": [ + "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" + ], + "errors": [], + "writes": [] + } + ] +} \ No newline at end of file diff --git a/docs/performance/font-startup/evidence/font-startup-before.json.gz b/docs/performance/font-startup/evidence/font-startup-before.json.gz new file mode 100644 index 0000000000000000000000000000000000000000..fc605177b51a3e26ec2d5a9ccec1fc57ef9d11b2 GIT binary patch literal 666 zcmV;L0%iRliwFP!000023hkOrPa821hVS_mBOiK7AW(_r699mVRJrxd)cXrps zvA4F9Wfk$?J6=LIv`7`L_)_PvN%kG@cs%wzvR9e+07O;FfMOTK7<1=Q^pj}xM8`nt zH@c(yQDb9?Q7bt3d&@7t}sYVeoQgYQ)uI*zoUhw+?4!Dn?YK4M>mR#sU2dv(}N(GaOiqwezQ7 zWJIePP)6#BAa^J2SVAPd8_T@?B)!&IEJ=R)V%WdbjI_m67HvMzilshrS*sacl(Ca@ zInhS1IB(Ts@x|kKswiRbada&D5SkEiGMMT<3}jUq99$@UI2I!;9KzSb)b7ZQU35wP zfM%BRE#VVRG1(5hmWEtO8wQjCoiD?nE?c8m+@EyA(f0IeaP#FaGJ7;>P!)YUnXULE zTj?=R#xlk#?5?k;=?!Z|J8`noVNJQox(Z?QWt)U%|G=wK&)jZJ8G5xf9PVw?^^C6P zbnOg>Pcj{7MKt@NmX%m`b>9C|Y|2@SD*i=yx7ABpQCi)si>@;6DbK$xjuK_2Z9$!P z@rsCNF@^I+2jyny;XBpa>PlNy&GycUT4GxmNnTMeB2Mn^sw8^9%!No}$c?Khh+LY0 zO9L*rb+vSFcNV(bqxa6YmDy>v*9%Ua^i~G(PrS;cKV@7ot{7L0s|SWFJLc^b^Xfn4 z)jMr%V$~Qu)9SI(iZ@pbD~1)r>fT_rv9-mot{7L0tDBt#H#RmmuOn7hOiZkYKrG&0 zF|Zg|46FwUEPj2(#Nrd-^(R8+)#Kn5Z?G6wj4Q^~9pEbc8>@Hz6Zi(NP;n*z0A^M| AYybcN literal 0 HcmV?d00001 diff --git a/docs/performance/font-startup/evidence/font-startup-before.txt b/docs/performance/font-startup/evidence/font-startup-before.txt new file mode 100644 index 0000000000000000000000000000000000000000..257b0d00fb9e8a9ed5a29c214f05487f2a2cb67c GIT binary patch literal 126 zcmXYpOA3H65JTTu@D4qI2M}-Lr=lQLYX!Z$8iy`26JAK(r^7R{67?G#wRDhZB`;TH kHWQ3QdhyNtpv-e+9@JTK`|Od0q6TsANXt=*ah+*FJGh(n$5a*k5s$fq?0xt_m&?v-Xv5i zEwi;`LWb)4kW@3_9+#@0X_W%sV`j3KPP?;j>c4L)-+#@0`+knwQ6aCW1a z61E0ABR(TO*Ao0Uej7O^SEn{GR$;%;4HVto|xS7Kgnb({(XqM?jFX*8QJgy^Sosp$NgY}NBgdq!geYWJWDl^VnVxt1n z5bs?5{;Zdmxn1WO(MwQ^pqLptDxb2fUq_wR@m|`G_zPH8 zpjs;F=QZYiVDm&iZ!7;lD&`yo_nZ=a$m9B5Uq!CHK6cEUvkXnFTgh$%I!$BD`&W>w ztxx~u{Q%lCvzzz4_D_7D!jQ5UeHZ%xzYcYbL;4+f0{5Tkc$X=uH^#9iw`LagFHz3k zNxGzt4!sq7j$YdP#~wOI#SN-h>jB!dtoRi?|y*;n3O+!2)%n^qM*VNcl29S=A3 zCHySYNOzoZg^W)yq-Rt!7d%Ue_i%^<-oe#%c>Maz5;H?lvjzNn%4=tnN|lIb8DmQY zLitif&hKY>**B}R&xi?8V<~2SCu}JF9P2bKpYcY|SX?L6{kX2t>RZ0+9iubiZ^@GL zG?T{jyoR|{w7tkfmG^g4nX{wrIhIz7Jbm?v)gCtVvG*9Mqax`R(3+}yN`H^*g~+_> z(^cLpo+t7(b$8;jeb~t2{=mM=er==64q1MI|IgH|GtJcNv11Px-mKI=pmNqbtGX@r zR?z6BdG)q#csivwR_1`HteS##PS7V;Tf41#cduzJIL$+0lg8B9vMA%aZ78s(nlsHo dF1@14iZl&wMX_?q3dI&R_YXURGBmIR003~W^1uK9 literal 0 HcmV?d00001 diff --git a/docs/performance/font-startup/evidence/font-startup-comparison.json b/docs/performance/font-startup/evidence/font-startup-comparison.json new file mode 100644 index 00000000..7108258c --- /dev/null +++ b/docs/performance/font-startup/evidence/font-startup-comparison.json @@ -0,0 +1,9 @@ +{ + "states": 8, + "externalStylesheetRequestsBefore": 8, + "externalStylesheetRequestsAfter": 0, + "fontHeadLinksPerStateBefore": 4, + "fontHeadLinksPerStateAfter": 0, + "fontFamiliesAndHeadingGeometry": "identical", + "limits": "No measured live network latency or typography redesign claim" +} \ No newline at end of file diff --git a/docs/performance/font-startup/evidence/font-startup-comparison.json.gz b/docs/performance/font-startup/evidence/font-startup-comparison.json.gz new file mode 100644 index 0000000000000000000000000000000000000000..42495d1524d38041f987e9deb2859bcaf19beb67 GIT binary patch literal 197 zcmV;$06PC4iwFP!000023XRXPiUL6l2H;-s9m3RCSXhXiSEz-^p-(XE{<{WeGTtP5 zH;C_kvnN=IScZK0e{vm errors.push(e.message)); + await page.addInitScript(({ language, mode }) => { localStorage.setItem('uiLanguage', language); localStorage.setItem('jobtracker.themeMode', mode); }, { language, mode }); + await page.route('**/*', route => { + const request = route.request(), url = new URL(request.url()); + if (!['localhost', '127.0.0.1'].includes(url.hostname)) { + external.push(url.href); + if (url.hostname === 'fonts.googleapis.com') return route.fulfill({ contentType: 'text/css', body: '/* synthetic unavailable font stylesheet: no remote font or provider access */' }); + return route.abort(); + } + if (!url.pathname.startsWith('/api/')) return route.continue(); + if (request.method() !== 'GET') { writes.push(url.pathname); return route.abort(); } + const fixtures = { + '/api/auth/config': { requireAuth: true }, + '/api/auth/me': { id: 'font-probe-owner', sessionContext: 'font-probe-session', firstName: 'Alex', displayName: 'Alex Sample', roles: [], uiLanguage: language === 'nb' ? 'nb-NO' : 'en' }, + '/api/jobapplications/reminders': [], '/api/notifications/unread-count': { count: 0 }, '/api/job-discovery/saved-searches': [], '/api/companies': [] + }; + return route.fulfill({ status: Object.hasOwn(fixtures, url.pathname) ? 200 : 404, contentType: 'application/json', body: JSON.stringify(fixtures[url.pathname] ?? {}) }); + }); + await page.goto('http://localhost:4338/discover'); + await page.locator('h1').waitFor(); + await page.evaluate(() => document.fonts.ready); + const actual = await page.evaluate(() => ({ + families: [...new Set([...document.querySelectorAll('body,h1,h2,button,input,label')].map(e => getComputedStyle(e).fontFamily))].sort(), + links: [...document.querySelectorAll('link[href*="fonts.googleapis.com"],link[href*="fonts.gstatic.com"]')].map(e => ({ rel: e.rel, href: e.href })), + heading: (() => { const h = document.querySelector('h1'), r = h.getBoundingClientRect(); return { text: h.textContent, width: r.width, height: r.height, family: getComputedStyle(h).fontFamily }; })(), + overflow: document.documentElement.scrollWidth > innerWidth + 1 + })); + assert.ok(actual.families.every(f => !/archivo/i.test(f)), 'Archivo must be unreferenced by rendered app typography'); + assert.equal(external.length, phase === 'before' ? 1 : 0); + assert.equal(actual.links.length, phase === 'before' ? 4 : 0); + assert.deepEqual(errors, []); assert.deepEqual(writes, []); assert.equal(actual.overflow, false); + states.push({ width, language, mode, ...actual, external, errors, writes }); + await context.close(); + } +} finally { await browser.close(); } +fs.writeFileSync(output, JSON.stringify({ phase, limits: ['Synthetic API only', 'External font stylesheet replaced with inert CSS; no Google request sent', 'Request count and typography are observed; no live-network latency claim'], states }, null, 2)); +console.log(`${phase}: ${states.length} states, ${states.reduce((n,s)=>n+s.external.length,0)} intercepted external stylesheet requests`); diff --git a/docs/performance/font-startup/evidence/font-startup-probe.mjs.txt.gz b/docs/performance/font-startup/evidence/font-startup-probe.mjs.txt.gz new file mode 100644 index 0000000000000000000000000000000000000000..35884366828f8e609d8d99ce4031b6e85e71e7c7 GIT binary patch literal 1753 zcmV;~1}6C*iwFP!000023Vl~?Z`-yO{@!1~4g*AGisYmL?wyOYH#ca94qH3a8}=ax zFj}H4HWaCmlwHH{f8Rq=lIr|A;IJE43hRt09Ry3QY;dN5jObhV zaee9;^~UlqS}58XU2<#la#PVXBT2`~2e#t*7pqm0rZo9qC)svm#Hw+H)LmN>Orp3GwJ)t{>=KvgEZkJb@)vJ8qKuT&Pm^6}L2~ODFZ# z!C?!nclYDc(&!CTVU2B=a8rc2WW6dIinGpa$?gRqutI1&wGkDd)-}0%_2Vof7gtxa z`}9~qGPUXvbdX87^4_Usaw>%U4Fb|*;bkgj9=w#dM@SUI|BioklZ%7Px#FAKxJ7ql zE%?SKbB-(p?=sSGuXRo?X0sXDXT zR#hLAaEsE2&QXLsVw^=F_o>&0WnD74aN77omb(v*w>0U+FM~MjjwjRC-;n;Im(HMU zfwF6O%YTJ|B-+6lVEK&oCk`7_F{jDdS#gH5;VpO=PN3U$o1_TG^+pY`)V-{Qlt@*mBjtYIb{vK0OR6ZX zg|katZLw0E5xZ4@+KH0%imjQDY$-YMX3(}<$!)_qidkvcXtf)*&`e;6wW!d-tn^Gl z&Wb}x`+p}cu_bzhPP_YK7=4hQ#e9%CsKPk=r*I8T3IteyxlUF2n1t#%JxRuxrk1-# zga61&kJeA`eg`A|7>lJAUm+Bl?2y3d9_w9GK&lq2#B+d&w0wi* zIdP^(g=WtkX?YMA)ja0(9B?lAx!x%5JJbSEu*JYLr!vDHq-tTT`-nIoa3lFwELFmK zmOok~3)Xg$hgLv3=Yb~YjWnG7Bfq7E11!_Ym z6oXBo{wSqDdG#dID_mUFd8vElLh#{fP6A0zYR?ftsn^_W3(MBLLb%M74L{Y4s_&Q* z!|GU7V?lhQ8~ioY1AtGy(H%Lw5(aV~PthvmVy>nV+LSYceKt^09>3!a^js_NA zad(T{BeB)O(-Y-saQnSCyGSi)HxQ|83vkLDGV$EPgj5as*??B*D3^c$i%K<$gNmU=Tk zI6pqTlRUiJ5*#G|3{%`2A{59jzWhKghF%z}bs98d@#SM(q3{3*tvz5b3r`JVtqYO+ zftJ>(AAE1(B58X+Xma9-r{;z$OkrfX1w5Xr@QgktZrkaVVO_ILPECWznWWP-ExB5G zw8Cf`sd5;A!4wzZiP>|<2j@c-{=15+rz$GWyLZuxFso&tI%N0BZoJ)2cTdcZnemyG z7|f%UIF-jsaT;Dv$E%E>Z=#ZHnpnmua~eHQ32dBQOR4Q}N$+3a`$^y^ie~p{njXa< zRNFjgd@m$lY*k6)=ScRLR(E9hT#=#`&UbgRn5LMU-#!qnepDXS* z+B^VLG+wzSrDUQ_aEA@wL%8--FM;Rf_^E^o8YI4=e|^6TA@1ko``wVISUvmUaCX>; v-xHLo%%<0G)DLKpM@2hJ_XrYeCGXJ7hcAc|NJ4z}FSzm#SahgT1rGoKlU#G! literal 0 HcmV?d00001 diff --git a/docs/performance/font-startup/evidence/font-startup-tracking-canary-PILOT.json b/docs/performance/font-startup/evidence/font-startup-tracking-canary-PILOT.json new file mode 100644 index 00000000..25b711b7 --- /dev/null +++ b/docs/performance/font-startup/evidence/font-startup-tracking-canary-PILOT.json @@ -0,0 +1,116 @@ +{ + "screens": [ + { + "width": 320, + "language": "en", + "mode": "light", + "state": "initial", + "violations": [] + }, + { + "width": 320, + "language": "en", + "mode": "light", + "state": "results", + "violations": [] + }, + { + "width": 320, + "language": "en", + "mode": "light", + "state": "review", + "violations": [] + }, + { + "width": 320, + "language": "en", + "mode": "light", + "state": "tracked", + "violations": [] + }, + { + "width": 1440, + "language": "en", + "mode": "light", + "state": "initial", + "violations": [] + }, + { + "width": 1440, + "language": "en", + "mode": "light", + "state": "results", + "violations": [] + }, + { + "width": 1440, + "language": "en", + "mode": "light", + "state": "review", + "violations": [] + }, + { + "width": 1440, + "language": "en", + "mode": "light", + "state": "tracked", + "violations": [] + } + ], + "journeys": [ + { + "width": 320, + "language": "en", + "mode": "light", + "discoveryPreviewReviewTracked": "PASS", + "optionalAttachmentsSkippedWithExistingControls": "PASS", + "savedSearchMutations": "NOT RUN", + "externalAdvertAndProviderAccess": "NOT RUN" + }, + { + "width": 1440, + "language": "en", + "mode": "light", + "discoveryPreviewReviewTracked": "PASS", + "optionalAttachmentsSkippedWithExistingControls": "PASS", + "savedSearchMutations": "NOT RUN", + "externalAdvertAndProviderAccess": "NOT RUN" + } + ], + "errors": [], + "unexpectedWrites": [], + "mockedWrites": [ + { + "width": 320, + "language": "en", + "mode": "light", + "action": "createTrackedJob" + }, + { + "width": 1440, + "language": "en", + "mode": "light", + "action": "createTrackedJob" + } + ], + "previewRequests": [ + { + "width": 320, + "language": "en", + "mode": "light", + "url": "https://example.test/vacancy-0" + }, + { + "width": 1440, + "language": "en", + "mode": "light", + "url": "https://example.test/vacancy-0" + } + ], + "unavailableReads": [], + "blockedExternal": [], + "limits": [ + "synthetic provider/API fixtures, not live NAV or backend qualification", + "no new providers/geography or native/security/release acceptance" + ] +} \ No newline at end of file diff --git a/docs/performance/font-startup/evidence/font-startup-tracking-canary-PILOT.json.gz b/docs/performance/font-startup/evidence/font-startup-tracking-canary-PILOT.json.gz new file mode 100644 index 0000000000000000000000000000000000000000..718ab0b6751279763fff5ab64ba165897f71e13b GIT binary patch literal 502 zcmVfXJ36z|W3NW652#wVBJXWR;L->)&SCB;RAKfFJm zJz^S69w5gECuouZFRkh^O?km1>>0Sn$q*ChF;bJ&z+`uY*FF3&n~s1(A2j<@5~vBc zr>oBn{?KFP}MPAw(UAx%H zvh3IEJ;Rv4$X2T{-Buk<&>1txqC~@fbxT!+>IZRg)sSa0`A2KmS?&Kk@1aJuLU6M9 z5_sr2nSZ?&%Wv~B5gSI=6;hELXGSfYtx2KFq(uMZ%wz-mZ?qY#gw9#FGg-e62Ac{c zM~aRZ4AsQU%VK5SwGv&bOZfs%|WQ@apHFYJx`-RaJoYa=E`5D zDK=168sA32Ijup0k?ouF>BM+W`9YUppa#;g(YQoV2Zq_`-Z58uZ;k;?B^@Z3_||ZN zOj1;P+osv#lenRVLwp=&!dMoXY83PAyRc4dx*-`Q?gD7KA=%%IeIJRj!r*rJluvWC sxr3@`yQ3!N)|h&fAv(ED9cl!R0^&ufIJSsggX^=0-`I1tgN6wJ0FY4bl>h($ literal 0 HcmV?d00001 diff --git a/docs/performance/font-startup/evidence/font-startup-tracking-canary.txt b/docs/performance/font-startup/evidence/font-startup-tracking-canary.txt new file mode 100644 index 0000000000000000000000000000000000000000..8fdc2480db72a22b53b5f8da86f7109cc8b888a5 GIT binary patch literal 280 zcmZ{fOA5j;6h-e?a1U94_#cQfaRY)YC~2&pno1L;-Mo4d!HLL&m*m`=`;ymltD~H( zE;`AplF>qQO*MgfdJV7eL=832uY0B?_0PZ4Mtf>areR7$W>m{sQ%)tcWJ1W=1JbI8 zopIdRdq|Hu(h6Fr<7~3KKnuLjLT_Xyx695nDg7npG)qtVXVw9w`?`&;+>0bcczRpV HIREnvvPCjE literal 0 HcmV?d00001 diff --git a/docs/performance/font-startup/evidence/font-startup-tracking-canary.txt.gz b/docs/performance/font-startup/evidence/font-startup-tracking-canary.txt.gz new file mode 100644 index 0000000000000000000000000000000000000000..a190e8f28a1b305f5fbcf468e50ea11ffcab961c GIT binary patch literal 175 zcmV;g08sxQiwFP!000023U!W44uU`sL~Cv09p(VW|H8O4T)@N=5Ev0fATS!Zy!xgW zZj9-qr@FejYTmCz7kOp6sZ^~(P8+SY)B?7qSMUXzps6PMRj;(A{^^f8=tS-Dblf#) zf;!%c^2%XzE_&NNVLFX)SEdKJh8fw;w1Z7GFgsJH?0WJdYVnL}Z_1cdT26G!=&j+H db!Ibs)lPR%z#+gl<~X;1e*hy-%fuJ~000N?QZfJl literal 0 HcmV?d00001