Skip to content

perf(site): stop loading jQuery, Slick and the theme script; record license evidence - #22

Merged
gaffercode merged 1 commit into
mainfrom
claude/project-thread-nsp8yx
Nov 22, 2026
Merged

gaffercode merged 1 commit into
mainfrom
claude/project-thread-nsp8yx

Conversation

@gaffercode

Copy link
Copy Markdown
Owner

Requested by Gaffercode · project thread

Summary

Closes the two remaining launch-readiness gaps: third-party weight/licensing and stale site docs.

  • Homepage no longer loads jQuery, jQuery Migrate, the Bootstrap JS bundle, Slick (JS + CSS), the WordPress theme script custom55e2.js, or the inline ajaxurl script. No markup used Slick, any Bootstrap JS component (no data-bs-*) or the WordPress loaders. The theme script's two live behaviours (mobile menu toggle, #header.scrolled past 50 px) moved to scripts/browser/menu.js. About 225 KB of deferred JS and one stylesheet request fewer.
  • Files keep their public paths (output-parity contract). tests/output-parity.test.mjs re-inserts the exact removed markup before comparing with the baseline; tests/performance-budget.test.mjs now asserts the five are not loaded.
  • License evidence: file-by-file table in docs/spds/license_register.md; Inter's OFL 1.1 text added as static/assets/theme/fonts/Inter-OFL.txt (copied from rsms/inter LICENSE.txt). Still open for the owner: theme origin, Slick (no notice in its files), GSAP standard-license terms, owner-supplied media.
  • Docs: current_state_snapshot.md brought to 2026-11-22 (PRs 11-19), refactor-progress.md records this change.

The three SPDS documents are agent_editable: false; this PR is the human-approval step for them.

Verification

  • node --test in apps/site: 77/77
  • node --run lint, verify, docs:verify: no errors; scripts/secret-scan.mjs: no findings
  • Headless Chromium: at 390 px the menu button opens/closes the menu and updates aria-expanded; at 1280 px the header gains/loses scrolled; no console errors; no request to the removed files
  • Not verified: a new PageSpeed run, a real phone, Safari/Firefox

Note

The public repository is filled by export from the private monorepo, so this change must also land there or the next export overwrites it.


Generated by Claude Code

…icense evidence

The homepage loaded jQuery, jQuery Migrate, the Bootstrap JS bundle, Slick
(JS and CSS) and the WordPress theme script. No markup used Slick or any
Bootstrap JS component; the theme script's two live behaviours (mobile menu
toggle, compact header past 50 px) now live in scripts/browser/menu.js.
About 225 KB of deferred JavaScript and one stylesheet request fewer. The
files keep their public paths; the parity test re-inserts the exact removed
markup before comparing with the baseline.

License register: a file-by-file review of the served third-party files,
and the Inter OFL text served beside the Inter fonts. The current state
snapshot is brought up to 2026-11-22.

Checked: site tests 77/77, lint, verify, docs verify; headless Chromium at
390 and 1280 px (menu, aria-expanded, scrolled header, no console errors,
no request to the removed files).

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

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentrapedia Ready Ready Preview Nov 22, 2026 2:24am UTC

Request Review

@gaffercode gaffercode self-assigned this Nov 22, 2026
@gaffercode
gaffercode marked this pull request as ready for review November 22, 2026 02:36
@gaffercode
gaffercode merged commit 8c93a3f into main Nov 22, 2026
4 checks passed
@gaffercode
gaffercode deleted the claude/project-thread-nsp8yx branch November 22, 2026 02:39
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.

2 participants