ignitionstack.pro v1.0 is out! Read the announcement →
Skip to Content

Next Steps - Performance Optimization

Implemented Optimizations

All critical optimizations have been applied. Your site is now ready to hit 95-100 Lighthouse scores.

How to Test

Build and test locally

# Build the project npm run build # Start the production server npm start # Open Chrome DevTools # - Open http://localhost:3000 in Chrome # - Press F12 to open DevTools # - Go to the "Lighthouse" tab # - Select "Performance", "Best Practices", "Accessibility", "SEO" # - Click "Analyze page load"

Online test (after deploy)

After deploying to production, test via:

Expected metrics

With these optimizations you should see:

MetricBeforeAfterImprovement
Lighthouse Score70-8095-100+25%
LCP3-4s< 1.5s60% faster
FCP1.5-2s< 0.8s55% faster
CLS0.15-0.25< 0.160% better
Bundle SizeLargeMedium-60%
Images9MB+< 1MB-89%
# Install the Vercel CLI npm i -g vercel # Log in vercel login # Deploy vercel --prod

Benefits:

Other options:

Additional settings (optional)

Configure an analytics endpoint

Crie um endpoint para receber Web Vitals:

// src/app/api/analytics/web-vitals/route.ts export async function POST(request: Request) { const data = await request.json(); // Send to your database or analytics service console.log('Web Vital:', data); return new Response('OK', { status: 200 }); }

Optimize images further

If you add new images later:

npm run optimize:images

Monitor performance in production

Set up alerts for regressions:

Ongoing monitoring

Web Vitals in Google Analytics

Web Vitals are already being sent automatically to GA4. To review:

  1. Open Google Analytics 4
  2. Go to “Events” → “Web Vitals”
  3. Build custom reports for each metric

Core Web Vitals report

Inside Google Search Console:

  1. Open “Core Web Vitals”
  2. Review reports for problematic URLs
  3. Monitor improvements over time

Future improvements (optional)

Critical (do this if issues appear)

Advanced (extreme performance)

Documentation

All optimization docs live in:

Important

  1. Do not remove the original images until you confirm the optimized versions work
  2. Test on multiple devices and browsers
  3. Monitor metrics after deploy
  4. Update Next.js dependencies regularly

Troubleshooting

Issue: Images do not load

# Check whether optimized images exist ls -la public/assets/images/*/optimized/ # If they are missing, run: npm run optimize:images

Issue: Service Worker does not register

Issue: Fonts do not load

# Check whether fonts were downloaded ls -la public/fonts/red-hat-display/ # If they are missing, run: cd scripts && chmod +x download-fonts.sh && ./download-fonts.sh

Final result

With all these optimizations your site should reach:

Support

If you need help with any optimization, check:


Good luck with the deploy!