Skip to content

chore(web): remove 404 page image to reduce bundle size#1687

Merged
tyler-dane merged 1 commit intomainfrom
chore/minimize-web-bundle
Apr 28, 2026
Merged

chore(web): remove 404 page image to reduce bundle size#1687
tyler-dane merged 1 commit intomainfrom
chore/minimize-web-bundle

Conversation

@tyler-dane
Copy link
Copy Markdown
Contributor

Summary

  • Remove the 516KB decorative image from the 404 page to reduce bundle size
  • The pirate-themed text and emoji (🏴‍☠️ "Shiver me timbers!") provide sufficient visual feedback

Context

This is part of an effort to minimize the web bundle size. Analysis of build/web revealed:

Asset Size Notes
chunk-*.js.map 12MB Source map (not downloaded by users)
chunk-*.js 3.5MB Main bundle (~960KB gzipped)
notFound-*.png 516KB Decorative 404 image

The 404 page image was the third largest asset in the build, yet it's only seen when users navigate to an invalid route—a rare occurrence by design.

Bundle Impact

  • 516KB removed from build output
  • ~100KB less network transfer (estimated gzipped savings)
  • Faster build times (one fewer large asset to process)

Related

See #1686 for a larger bundle optimization opportunity: replacing react-cmdk with a native command palette to eliminate the transitive @heroicons/react dependency (975 bundled icon files).

Test plan

  • Navigate to an invalid route (e.g., /invalid-path)
  • Verify 404 page displays correctly with pirate text and button
  • Verify "Go back to your booty" button navigates home

🤖 Generated with Claude Code

Remove the 516KB notFound.png decorative image from the 404 page.
The pirate-themed text and emoji provide sufficient visual feedback.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tyler-dane
Copy link
Copy Markdown
Contributor Author

tyler-dane commented Apr 28, 2026

Screenshot 2026-04-28 at 10 13 27 AM

@tyler-dane tyler-dane merged commit 254d7ef into main Apr 28, 2026
9 checks passed
@tyler-dane tyler-dane deleted the chore/minimize-web-bundle branch April 28, 2026 16:15
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