feat(perf): cut initial JavaScript for Explore by about a third #93
+565
−1,449
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Initial JavaScript before Explore is shown: 131.8 KB → 90.1 KB gzipped.
documentMode: 'string') and sent as-is, sographql(graphql-js) is removed from the browser bundle and fromapps/web. Tests andscripts/test-recipe-api.tswere updated accordingly.AppShellshows a loading state while a page chunk loads. Explore (the landing page) still loads with the app.componentslayer fell belowresetand primary buttons lost their white text. The layer order is now declared inline at the top ofindex.html; a new smoke test fails without this fix.docs/performance-and-images.md.Validation
npm run checkpasses (211 unit tests);test:apipasses; the real-database browser test passes.npm run check(229 unit tests),test:db(12),test:api(17) and the fulltest:e2e(30, incl. the real-database browser test and the axe suite) pass on macOS against PostgreSQL 16; smoke, accessibility and cookie-auth browser tests pass on Linux (29/29).Remaining work
AI usage
Written with Claude Code (Anthropic) during the final-delivery review. The change was implemented and tested by the AI agent and pushed from my account. Please review the diff as you would any other contribution.
Closes #83