Perf-1: Compress background images to WebP (~97% size reduction)#11
Draft
Perf-1: Compress background images to WebP (~97% size reduction)#11
Conversation
- Convert 12.7MB pizza shop background to 205KB WebP (98% reduction) - Convert 904KB counter to 13KB WebP (99% reduction) - Delete unused 2.9MB landscape image - Serve backgrounds from CDN instead of local public/ - Add asset preloader with loading bar on splash screen - Total: 15.6MB removed from repo Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Changes
GameBoard.tsx— CDNbg("pizza-shop-background.webp")instead of local PNG importApp.tsx—bg('counter.webp')instead ofbg('counter.png')index.html— Removed preload hint for old PNGsrc/lib/spriteManifest.ts— PRELOAD_BACKGROUNDS arraysrc/hooks/useAssetPreloader.ts— Background preloader with loading barSplashScreen.tsx— Integrated preloader with progress barpublic/pizza shop background v2.png,public/landscape version pizza chef.pngTest plan
🤖 Generated with Claude Code