Next.js Unleashed: Optimizing Web Vitals for superior User Experience
A simple wine shuffler app scored a dismal 52 on Lighthouse. See the step-by-step Next.js optimizations that skyrocketed its performance to a near-perfect 99.
#1about 2 minutes
Building a wine app and discovering its poor performance
A sample wine recommendation app built with Next.js reveals a low initial Lighthouse performance score of 52, prompting an investigation into optimization.
#2about 4 minutes
Explaining the importance of Core Web Vitals
Core Web Vitals like LCP, CLS, and INP are defined as key metrics for measuring user experience, loading performance, and visual stability.
#3about 4 minutes
An overview of Next.js and its optimization capabilities
Next.js is introduced as a React framework with built-in features like server-side rendering and static site generation that aid performance.
#4about 3 minutes
Improving performance with the Next.js Image component
Replacing the standard HTML `<img>` tag with the Next.js `<Image>` component automatically handles resizing, modern formats like WebP, and lazy loading.
#5about 4 minutes
How to efficiently load custom fonts in Next.js
The built-in font optimization in Next.js eliminates extra network requests by inlining font CSS at build time, improving load performance.
#6about 4 minutes
Using dynamic imports for modules and components
Defer loading of non-critical JavaScript for third-party libraries and React components by using dynamic imports to reduce the initial bundle size.
#7about 2 minutes
Managing third-party scripts with the Script component
The Next.js `<Script>` component provides control over when third-party scripts are loaded and executed to prevent them from blocking page rendering.
#8about 2 minutes
Achieving a near-perfect score after optimizations
After applying several Next.js optimization techniques, the application's Lighthouse performance score improved from 52 to 99.
Related jobs
Jobs that call for the skills explored in this talk.
Dev Digest 215: Agent Memory, JS2026, Googlebot Analysis & Canvas❤️HTMLInside last week’s Dev Digest 215 .
🗿 Make AI talk like a caveman
🧠 A guide to context engineering for LLMs
🤖 Simon Willison on agentic engineering
🔐 Axios supply chain attack post mortem
🛡️ Designing AI agents to resist prompt injection
🎨 HTML in c...
SciChart
The Fastest JavaScript Charts - Built for React and BeyondFor most developers, browser charting works fine — until it doesn’t. Once you push beyond tens of thousands of points, add live streaming, or need advanced interactions, the story changes: frame drops, frozen dashboards, memory issues.
That’s where S...
Dev Digest 190: GitHub A11Y action, >12s Sora 2 videos and 42 CSS units!Inside last week’s Dev Digest 190 .
🙅 Developers don’t trust AI, and that’s a good thing
🤖 Why everyone is talking about AI agents
🔓 Autonomous AI hacking and the future of cyber security
😨 Windows 10 support ends, millions of PC’s fall off a securi...
From learning to earning
Jobs that call for the skills explored in this talk.