Skip to content

Remove unused vendored JS from the toolbox#21

Open
balloob wants to merge 1 commit into
OpenDisplay:mainfrom
balloob:chore/remove-unused-js
Open

Remove unused vendored JS from the toolbox#21
balloob wants to merge 1 commit into
OpenDisplay:mainfrom
balloob:chore/remove-unused-js

Conversation

@balloob

@balloob balloob commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Removes five dead files under httpdocs/firmware/toolbox/ — no page or script loads them, so the deployed site is unaffected.

js-yaml.min.js (stale js-yaml 4.1.0): the toolbox page loads the shared /js/js-yaml.min.js (4.1.1) like every other page (toolbox/index.html:21). Having a second, older copy of the same library next to the page is a footgun — someone editing or auditing it would be looking at code that never runs.

js/s2/ (4 files — install-button.js, index-7020c696.js, connect-f67814ca.js, esp32s2-da30a731.js): an orphaned second esp-web-tools build. The toolbox's loader only ever injects ./js/install-button.js, and the s2/ files are referenced by nothing except each other (verified by grepping every path fragment across all HTML/JS in httpdocs/).

Kept, because they ARE loaded via relative paths: toolbox/jszip.min.js, toolbox/serial.js, toolbox/nrf_web_tools.js, and everything under nrf_web_tools/. (Note: toolbox/nrf_web_tools.js is an older revision than nrf_web_tools/nrf_web_tools.js and is missing the multi-part reconnect flow — that's a real divergence, but consolidating it changes behavior, so it belongs in its own PR.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01TEs4tsAWupf2DXFM4faECC

httpdocs/firmware/toolbox/js-yaml.min.js is a stale js-yaml 4.1.0 copy
that nothing loads — the toolbox page uses the shared /js/js-yaml.min.js
(4.1.1), same as every other page.

httpdocs/firmware/toolbox/js/s2/ is an orphaned second esp-web-tools
build variant. The toolbox only injects ./js/install-button.js; nothing
references the s2/ entry point or its chunks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TEs4tsAWupf2DXFM4faECC
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