Skip to content
Learn Netverks

Lesson

Step 30/36 83% through track

images-optimization

Image optimization

Last reviewed May 28, 2026 Content v20260528
Track mode
client_nextjs
Means
In-browser Next.js (client components)
Reading
~1 min
Level
intermediate

This lesson

This lesson teaches Image optimization: the concepts, APIs, and habits you need before advancing in Next.js.

Without Image optimization, you will struggle to read or extend Next.js codebases and playground exercises.

You will apply Image optimization in contexts like: Marketing sites, dashboards, e-commerce, and Vercel-style deployments that need hybrid static + dynamic pages.

Write TSX for Client Components, click Run—React 18 CDN + in-browser TSX compile; use client/server lessons explain App Router concepts; mountApp renders interactive UI; printOutput feeds the terminal.

Toward the end of the track—consolidate before capstone-style review lessons.

Images dominate page weight and LCP on content sites. Next.js next/image resizes, compresses, and lazy-loads— but good habits matter even in the playground.

Discipline that transfers

  • Always set meaningful alt text
  • Reserve space with width/height (or aspect-ratio) to prevent CLS
  • Use priority only for above-the-fold heroes
  • Serve appropriately sized sources—don’t ship 4000px photos for thumbnails

Remote images

// next.config.js
images: { remotePatterns: [{ protocol: 'https', hostname: 'cdn.example.com' }] }

Self-check

  1. What is CLS and how do dimensions help?
  2. When should an image use priority?

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Remote patterns config?
  • LCP image choice?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump