Performance Baseline - Pre-Optimization

Date: 2024-11-24 Purpose: Reference metrics before deploying render-blocking optimizations

Build Metrics

File Sizes

Resource Loading Strategy

Critical CSS

Optimizations Applied

Render-Blocking Elimination

Image Optimization

Code Cleanup

Manual Lighthouse Testing

Pre-Deployment (Local)

Run local server:

.\build.ps1
# Visit http://localhost:4000

Run Lighthouse in Chrome:

  1. Open Chrome DevTools (F12)
  2. Click “Lighthouse” tab
  3. Select:
    • ✅ Performance
    • ✅ Accessibility
    • ✅ Best Practices
    • ✅ SEO
  4. Device: Desktop (for consistency)
  5. Click “Analyze page load”
  6. Save results or screenshot scores

Post-Deployment (Production)

After pushing to main:

  1. Wait 3-5 minutes for deployment
  2. Visit https://christaylor.codes
  3. Run same Lighthouse test
  4. Compare scores with local results

Also test with:

Expected Improvements

PageSpeed Metrics

Lighthouse Scores

Audit Resolutions

Network Performance

Critical Path

  1. HTML document (43KB)
  2. Critical inline CSS (immediate render)
  3. Async resources load in parallel:
    • Google Fonts
    • Font Awesome
    • Main stylesheet
    • Cookie consent
  4. JavaScript loads deferred (non-blocking)

Connection Optimization

Comparison Checklist

After deployment, compare:

Files Modified

  1. _config.yml - Logo switched to WebP
  2. _layouts/default.html - Async Google Fonts, added jsdelivr preconnect
  3. _includes/cookie-consent.html - Async CSS and deferred JS
  4. _includes/footer.html - Lazy loading for badge image
  5. assets/css/main.css - Deleted (removed 32KB unused code)

Notes