Experiment: 2c8e836
rad experiment show 2c8e83696fa0cdfb9bc4ac9e7e750ab1a69d4b7b
by ee@did:key:z6MkvsiybCuk1WDZhh2aXDx7NTiZejKgWZygMNsUuXDMNvVQ · Apr 11 23:16 2026
drop unused :root css vars
Measurements
MetricBaselineThe benchmark measurement of the unmodified codeCandidateThe code with the proposed optimization appliedDeltaThe performance change from baseline to candidate
gzipped_client_bytes (bytes) primary53717.000 bytes (n=1)53612.000 bytes (n=1)-0.19%
raw_client_bytes (bytes) secondary162050.000 bytes (n=1)161491.000 bytes (n=1)-0.34%
Annotations
hypothesis25 css custom properties in :root (heading-*, mono-*/sizes, weight-*, --code, --code-leading) are declared but not referenced by any source class, tailwind utility, or @theme mapping — deleting them should be pure content removal
what_worked-105 gz -559 raw. confirms the next_action_hint: content removal beats markup dedupe. dead css vars ship verbatim to :root in the bundled css and are not tree-shaken because tailwind v4 only shakes utility classes, not raw :root declarations
Base CommitThe starting commit before the optimization was applied3c6212c633b5aae60836459a761d9ee1fd0aa283
Candidate CommitThe code with the proposed optimization appliedf2f2673b1ab94ea494a19ea10a2b216ec5ba8472
Configoptimize.yaml
Diff
~ src/routes/layout.css
@@ -65,37 +65,12 @@
65 /* Typography */ 66 --font-sans: Booton, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 67 --font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace; 68- --weight-regular: 400; 69- --weight-medium: 500; 70- --weight-semibold: 600; 71- --heading-xxl: 2rem; 72- --heading-xxl-leading: 2.25rem; 73- --heading-xl: 1.75rem; 74- --heading-xl-leading: 2rem; 75- --heading-l: 1.375rem; 76- --heading-l-leading: 1.75rem; 77- --heading-m: 1.125rem; 78- --heading-m-leading: 1.5rem; 79- --heading-s: 1rem; 80- --heading-s-leading: 1.25rem; 81- --heading-xs: 0.875rem; 82- --heading-xs-leading: 1.25rem; 83- --heading-xxs: 0.75rem; 84- --heading-xxs-leading: 1rem; 68 --body-l: 1rem; 69 --body-l-leading: 1.5rem; 70 --body-m: 0.875rem; 71 --body-m-leading: 1.25rem; 72 --body-s: 0.75rem; 73 --body-s-leading: 1rem; 91- --mono-l: 1rem; 92- --mono-l-leading: 1.5rem; 93- --mono-m: 0.875rem; 94- --mono-m-leading: 1.25rem; 95- --mono-s: 0.75rem; 96- --mono-s-leading: 1rem; 97- --code: 0.875rem; 98- --code-leading: 1.25rem; 74 75 /* Spacing */ 76 --space-2xs: 0.125rem;
Environment
Buildtrue
Teststrue
Archaarch64
OSDarwin 14.6.1
CPUApple M2
Agentpi-autoresearch / pi
Filessrc/routes/layout.css