Skip to content

feat: add performance budgets and image optimization - #63

Merged
suradet-ps merged 1 commit into
mainfrom
feat/phase-7-performance-budgets
Aug 2, 2026
Merged

feat: add performance budgets and image optimization#63
suradet-ps merged 1 commit into
mainfrom
feat/phase-7-performance-budgets

Conversation

@suradet-ps

Copy link
Copy Markdown
Owner

Phase 7: Performance Budgets

Changes

Image optimization (85% reduction):

  • Converted all 9 public images from PNG/JPEG to WebP
  • : 12 MB → 1.8 MB total
  • Largest savings: confident-typing-at-work.png (3.9 MB → 557 KB)

CLS prevention:

  • Made Image.astro width and height props required
  • Ensures all content images have explicit dimensions

CI bundle size budget:

  • Added size-limit with 10 KB gzipped limit
  • Current bundle: 1.16 KB gzipped (well under budget)
  • Runs after build in CI

Performance baseline:

  • Created docs/perf-baseline.md with build output measurements
  • Documented JS (5 KB total), CSS (120 KB), image sizes, cache strategy

Acceptance (from ROADMAP)

  • Baseline measured and documented
  • CI-enforced bundle size budget
  • Image audit complete (WebP conversion)
  • Font loading verified (display=swap, no FOIT)
  • No CLS risk from async components

Verification

  • Lint: ✅
  • Tests: 37/37 ✅
  • Build: 100 pages ✅
  • Size-limit: 1.16 KB (budget: 10 KB) ✅

- Compress all public images to WebP (12MB → 1.8MB, 85% reduction)
- Make Image.astro width/height required for CLS prevention
- Add size-limit to CI (10KB budget, current: 1.16KB gzipped)
- Create docs/perf-baseline.md with build output measurements
- Mark Phase 7 items complete in ROADMAP.md
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
rxdevnotes Ready Ready Preview Aug 2, 2026 10:57pm

@suradet-ps
suradet-ps merged commit c0689d3 into main Aug 2, 2026
7 checks passed
@suradet-ps
suradet-ps deleted the feat/phase-7-performance-budgets branch August 2, 2026 22:59
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