Skip to content

release: v2.6.2 — drop the Font Awesome SVG-with-JS build - #246

Merged
wmantly merged 1 commit into
masterfrom
fix/fontawesome-js
Sep 16, 2026
Merged

wmantly merged 1 commit into
masterfrom
fix/fontawesome-js

Conversation

@wmantly

@wmantly wmantly commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

nodejs/views/top.ejs pulled both the Font Awesome webfont stylesheet and js/all.min.js. The JS build runs a MutationObserver over the whole document, rewriting every <i> into an <svg> with keepOriginalSource: true.

On a page that re-renders a list often it cannot keep up. Measured in Chrome on identical markup:

result
FA off, 500 rows × 10 rebuilds renderer fine
FA on, 150 rows × 6 rebuilds (5.5× less work) froze, 776MB, zero icons converted

It ended with 900 <i> and 0 <svg> — it never drained its own backlog.

The stylesheet alone renders the same fa-solid fa-* classes with no scripting, and I checked that nothing in this app uses an SVG-only feature (fa-layers, data-fa-transform, data-fa-mask, i2svg).

Found while investigating theta-directory; the proxy loads the same shell, so it carried the same cost.

View change only — no application logic touched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TnJ9iEHU6m7kYxD5fXPfts

top.ejs pulled both the webfont stylesheet and js/all.min.js. The JS build runs
a MutationObserver over the whole document, rewriting every <i> into an <svg>
and keeping the original source. On a page that re-renders a list often it
cannot keep up: measured in Chrome, 150 rows x 6 rebuilds froze the renderer at
776MB having converted zero icons, while the same run without it was
untroubled.

The stylesheet alone renders the same fa-solid fa-* classes with no scripting,
and nothing in this app uses an SVG-only feature (fa-layers, power transforms,
masks).

Found in theta-directory; the proxy loads the same shell, so it carried the
same cost.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TnJ9iEHU6m7kYxD5fXPfts
@wmantly
wmantly merged commit e175b61 into master Sep 16, 2026
13 checks passed
@wmantly
wmantly deleted the fix/fontawesome-js branch September 16, 2026 02:34
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