Skip to content

clients: remove fonts that are named, copied or requested and never used - #3476

Merged
colinmegill merged 4 commits into
edgefrom
clients/remove-unused-fonts
Nov 24, 2026
Merged

colinmegill merged 4 commits into
edgefrom
clients/remove-unused-fonts

Conversation

@colinmegill

Copy link
Copy Markdown
Member

Clients: remove fonts we name, ship or request but never use

What a person will see change

Nothing, for anyone who does not have one of the removed typefaces installed on their own machine. The one case where a reader sees a different face, per removed name:

Removed name Where A reader who has it installed locally now sees How common it is on people's machines
VT323 report: the four large counts (participants, comments, votes, groups) on the standard report and the topic-map narrative report their device's monospace rare: a free display face, installed by hand
Open Sans (Plotly's default) report: topic scatterplots and the layer distribution chart (axis, title and hover text) Verdana fairly common: ships with many applications and some Linux distributions
brandon-grotesque, Brandon Grotesque legacy participant client: the signed-in menu button Futura (macOS), else Gill Sans or Helvetica Neue rare: a commercial face
brandon-grotesque unsupported-browser page Helvetica Neue no one: no build ships this page
proxima_nova legacy form-switch module Helvetica Neue no one: the module is not imported
Source Serif Pro, Montserrat legacy vis2 globals Georgia no one: no live code reads them, and neither string is in the built bundle

Readers with Font Awesome installed locally see what they saw before: the font-family: FontAwesome names are left in place; only our copies of the files, which nothing requested, are gone.

What was removed

Removal Bytes Requests
Font Awesome 4.7 font files copied into the legacy client's /fonts/ (otf 134,808; eot 165,742; svg 444,379; ttf 165,548; woff 98,024; woff2 77,160) 1,085,661 no longer in the build none were made: nothing declared them
The font-awesome package and its copy step (legacy client); the unused react-fontawesome package (legacy client and report) 27 + 13 lockfile and manifest lines none
Typekit kit script on both copies of unsupportedBrowser.html n/a one request to use.typekit.net gone from the source (the kit answers 404)
Font names that nothing provides (table above) legacy bundle −42 bytes; report bundle +18 bytes (two layouts now name their font list) none
Unused Bootstrap font-family and Glyphicons variables; commented-out font lists compiled polis.css byte-identical none

Built output, legacy participant client: 1,611,779 → 526,118 bytes (27 → 21 files).

How each was proven dead

  • Font Awesome files. No stylesheet or script the legacy client builds declares @font-face for FontAwesome, and nothing imports Font Awesome's CSS; the only references are font-family: FontAwesome (a mixin and one SVG text attribute), which a browser resolves against installed fonts only. A production build before and after differs only in the missing fonts/ directory: every other file is byte-identical. No other client references /fonts/. react-fontawesome is imported nowhere in either client.
  • Typekit. https://use.typekit.net/wzs2fuq.js answers 404, so the script failed and Typekit.load() threw into its own catch. Neither copy of the page is in a build output: the legacy client's build does not copy it, and the server asks the static host for it.
  • Font names. Each name has no font file, @font-face, or font service anywhere in the repository. A build before and after shows the only differences in the bundles are these strings (and the build's commit stamp). Names that are the only entry in their declaration were not touched (below).
  • SCSS variables. Only variables is imported from the Bootstrap configuration; no partial or stylesheet reads the removed variables. Compiled CSS is byte-identical.

Deliberately left

  • Every font that sets text today: Space Mono on the admin console, the home page and the landing pages; Roboto in the first-party topic map; every device stack (Helvetica Neue, Georgia, Arial, Verdana, Futura and the rest).
  • chaparral-pro (conversation description), brandon-grotesque on the map's waiting text, and the admin's "mono": each is the only name in its declaration, so removing it would change the face everyone sees.
  • The menu dropdown's malformed font-family style attribute in conversationTabs.handlebars, which browsers already ignore. Fixing it would change what readers see.
  • The /fonts/ route, and files already uploaded under /fonts/ by earlier deploys (a deploy does not delete them).
  • The topic-map pages Delphi generates through datamapplot, which load fonts from Google Fonts and MaxCDN: that code is being replaced and is not changed here.

Checks

  • Legacy participant client: production build passes; lint has the same 42 errors as edge, none new; node --test 570 of 570 pass.
  • Report: production build passes; lint clean; Jest 21 suites, 107 tests pass.
  • Vote-sign lint: 0 new.
  • No changes to the admin client, the participant interface (alpha), server code, schema or Delphi.
  • The third-party-hosts Cypress test is unchanged. It cannot visit the unsupported-browser page because no build ships that page.

🤖 Generated with Claude Code

colinmegill and others added 4 commits November 24, 2026 02:27
… draws with

The legacy participant client's build copied the six Font Awesome 4.7
font files (1,085,661 bytes: otf, eot, svg, ttf, woff, woff2) into
/fonts/. No stylesheet or script it builds declares an @font-face for
them, and it imports no Font Awesome CSS, so no page ever requested them.
This removes the copy step, the font-awesome package, and the unused
react-fontawesome package from the legacy client and from the report
(neither client imports it).

What a person would notice: nothing. Every other built file is
byte-identical; the build output shrinks from 1,611,779 to 526,118 bytes.
The `font-family: FontAwesome` names in the stylesheet and the map are
left as they are, so a reader with Font Awesome installed on their own
machine still sees what they saw. Files already uploaded under /fonts/
by earlier deploys are not removed by a deploy, and the /fonts/ route
stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KvftUARCjBArGpuPBmjRZ1
…kit.net

Both copies of unsupportedBrowser.html (the legacy client's and the
server's) loaded the Typekit kit wzs2fuq from use.typekit.net and then
called Typekit.load() inside a try. That kit no longer exists: a GET of
https://use.typekit.net/wzs2fuq.js answers 404, so the script failed,
the call threw, and the catch swallowed it. Neither copy is in any build
output today (the legacy client's build does not copy it, and the server
asks the static host for it), so no browser currently receives the page.

What a person would notice: nothing. The page sets its text in the next
fonts of its own list, as it already did with the kit missing. One request
to another host is gone from the source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KvftUARCjBArGpuPBmjRZ1
Each of these names was asked for and could never load from us: no
font file, @font-face or font service provides it. The browser skipped
each to the next font in its list. Removing the name leaves that next
font in front.

- Report: "VT323" ahead of monospace on the four large counts of the
  standard report and the topic-map narrative report.
- Report: Plotly's default "Open Sans", verdana, arial, sans-serif on the
  topic scatterplots and the layer distribution chart; their layouts now
  name verdana, arial, sans-serif themselves.
- Legacy client: "brandon-grotesque", "Brandon Grotesque" ahead of Futura
  on the signed-in menu button.
- Legacy client: "brandon-grotesque" on the unsupported-browser page (no
  build ships that page); proxima_nova in the form-switch module (not
  imported by any stylesheet); "Source Serif Pro" and "Montserrat" in
  vis2 globals that no live code reads (neither string is in the build).

What a person would notice: nothing, unless that exact typeface is
installed on their own machine; then they now see the next font in the
list (monospace, Verdana, Futura) where before they saw their local copy.
The legacy client's bundle changes only in the menu button's style
string; the report's only in these strings.

Left as they are, because the name is the only one in its declaration
and taking it out would change what everyone sees: chaparral-pro on the
conversation description, brandon-grotesque on the map's waiting text,
and the menu's dropdown list, whose style attribute is malformed and so
already ignored by browsers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KvftUARCjBArGpuPBmjRZ1
…iles

The legacy client's Bootstrap configuration defined the font-family
variables ($font-family-sans-serif with "brandon-grotesque", -serif,
-monospace, -base) and the Glyphicons icon-font variables, but no
Bootstrap partial that reads them is imported, and no stylesheet of ours
uses them. The client's own font variables carried commented-out lists
of Brandon Grotesque, Chaparral Pro and Canada Type Gibson.

What a person would notice: nothing. The compiled polis.css is
byte-identical before and after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KvftUARCjBArGpuPBmjRZ1
@colinmegill
colinmegill merged commit 6d45d8a into edge Nov 24, 2026
37 checks passed
@colinmegill
colinmegill deleted the clients/remove-unused-fonts branch November 24, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant