performance-optimization

Optimize Next.js portfolios to meet Core Web Vitals thresholds.

6|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/JaivishChauhan/vibecoding-starter --skill performance-optimization-jaivishchauhan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-optimization
Source: https://github.com/JaivishChauhan/vibecoding-starter/tree/main/.agent/skills/performance-optimization
Command: npx skills add https://github.com/JaivishChauhan/vibecoding-starter --skill performance-optimization-jaivishchauhan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps you optimize a Next.js portfolio for Core Web Vitals, reduce bundle size, and accelerate loading times, delivering faster, smoother user experiences.

Core Features & Use Cases

  • Targeted performance improvements: optimize LCP, FID/INP, CLS, FCP, and TTFB across pages.
  • Asset optimization: image and font optimization, code-splitting, and caching strategies for production.
  • Use Case: Apply to a personal portfolio site to hit Lighthouse scores of 90+ and maintain fast interactions on routes like hero, projects, and contact forms.

Quick Start

Apply the performance optimization principles to your Next.js project to improve metrics and loading experience.

Frequently Asked Questions about performance-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Core Web Vitals in a Next.js portfolio to hit Lighthouse scores of 90+?

To optimize Core Web Vitals in Next.js, apply targeted image and font optimization, code-splitting, and caching strategies. This reduces bundle size and accelerates loading across hero, project gallery, and contact form routes to achieve Lighthouse scores above 90.

How do I reduce Largest Contentful Paint (LCP) under 2.5 seconds on Next.js pages?

Reduce LCP under 2.5 seconds by applying Next.js asset optimization techniques including image compression, font loading optimization, and efficient caching. These configurations prioritize critical rendering for hero sections and content pages to ensure fast loading.

What's the best way to reduce bundle size and improve loading speed in a Next.js application?

The best way to reduce bundle size in Next.js is applying code-splitting, targeted asset optimization, and production caching strategies. These techniques minimize JavaScript payloads and accelerate loading times across routes like hero sections and project galleries.

Does this performance optimization approach work for production-grade Next.js sites with complex project galleries?

Yes, this performance optimization approach applies to production-grade Next.js sites including complex project galleries and content pages. It provides actionable guidance and configuration examples to maintain fast rendering and smooth interactions under strict Core Web Vitals thresholds.

Why does my Next.js site have a high First Input Delay and how do I get it under 100ms?

A high First Input Delay or Interaction to Next Paint often stems from large JavaScript bundles blocking the main thread. Reduce FID and INP under 100ms by applying Next.js code-splitting and bundle-size optimization to ensure smooth user interactions.