Skip to content

Lazy-load tab editors and extend Bot API drift checks - #11

Merged
f1devbin merged 1 commit into
mainfrom
perf/lazy-tabs-drift
Nov 21, 2026
Merged

f1devbin merged 1 commit into
mainfrom
perf/lazy-tabs-drift

Conversation

@f1devbin

Copy link
Copy Markdown
Owner

What changed

Performance: lazy tab controllers

  • Tab modules are imported with dynamic import() only when a tab is opened; the landing page no longer downloads the whole editor module graph.
  • Added an e2e assertion that no /assets/js/tabs/ request happens before connecting.
  • The dev tab keeps alwaysReload; controller init() runs once, load() runs per open/refresh.

Bot API drift

  • The drift check now also compares InputProfilePhoto subtypes (Static, Animated), so a new photo type cannot be missed silently.
  • The weekly Bot API watch opens or updates the bot-api-update issue when the spec source looks stale, not only when fields differ. The issue title/body distinguishes real drift from a stale source.

Release

  • Version 3.4.0; CHANGELOG, README, CLAUDE.md updated.

Testing

  • npm test — 48/48 pass.
  • npm run build — 25 pages.
  • node scripts/check-bot-api.mjs — Up to date (spec 10.4).
  • e2e with mocked API — passed locally, including the new lazy-load assertion.
  • CI will run Playwright e2e and Lighthouse.

No changes to secrets, remote URLs, or deploy keys. Git remains on the github-tbm SSH deploy key.

- import tab controllers only on first activation; the landing page ships less JS
- assert in e2e that tabs/* are not requested before connect
- check InputProfilePhoto subtypes; the weekly watch also flags a stale spec source
- bump version to 3.4.0
@f1devbin
f1devbin merged commit 2d28e6c into main Nov 21, 2026
3 checks passed
@f1devbin
f1devbin deleted the perf/lazy-tabs-drift branch November 21, 2026 10:17
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