Avoid these Painful Mistakes Slowing your Next.js apps


Hey friend,

I have some good news 🎉.

I've been working hard on offering a Exclusive Live Workshop on Next.js.

Want to take your Next.js skills to the next level and learn how to build a production ready, modern and full stack app?

well, this workshop is for you!!

You can read more about the workshop here ↗️

As a special thank you for reading my weekly newsletter, I plan to offer some launch discounts and exclusive bonuses to folks on the waitlist so please add yourself to the waitlist if you are interested.

Clicking this button will add you to the waitlist ✨


Here are a five common mistakes I've seen developers make in Next.js that are truly slowing your apps.

  • Not Utilizing the sizes Prop with the Image Component 🎨
  • Incorrect Usage of Loading States in Server Actions 🔁
  • Misplacement of Redirect Functions in Server Actions ←
  • Inadequate Cache Management 📦
  • Improper Component Architecture 🌐

We won't be diving into each one but only "Not utilizing the sizes Prop with the Image component".

To watch the rest, you can check out my Youtube video here ↗️

🍿 Our Weekly Snack: Not Utilizing the sizes Prop with the Image Component

Here is a quick code snippet,

For optimal performance benefits with Next.js's image component, it's essential to specify the sizes prop along with fill={true} property to ensure the appropriate image size is served based on viewport dimensions.

Failure to do so may result in inefficient image loading, causing larger images to be downloaded unnecessarily. This means you'll download an image 3x the size on a smaller mobile device.

This can easily slow down your app performance.

Weekly Youtube Videos 💖

I've been asked to create a video a deep dive into Caching for a while now so here you go.

Check out the below video on Next.js Caching or master Next.js by taking my completely free Crash Course.

Master Next.js Caching in 25 minutes

video preview

Ultimate Next.js Crash Course 🚀

video preview

Check it out and subscribe to my channel for more content related to Frontend, Leadership and Career Development. 💪

Frontend News & Developers Toolbox 🧰

  • A compiler for React called React Unforget ↗️ that optimizes components and hooks for performance and readability.
  • Do you like ESLint, but for performance? Million Lint ↗️ is a VSCode extension that keeps your React website fast. They identify slow code and provide suggestions to fix it.
  • Vercel has a new SDK for AI 3.0 ↗️, a generative UI design tool that converts text and image prompts to React UIs and streamlines the design engineering process.

Ankita Kulkarni

Join 9200+ subscribers reading by weekly personalized Newsletter that helps developers level up their skills through weekly Frontend and Leadership Snacks. You get a deep dive into a Tech topic, Actionable tips to excel in your career and a toolbox!

Read more from Ankita Kulkarni
skills vercel

Hey Reader, I just dropped a super exciting video that covers all 29 Common Next.js Mistakes that I have seen a lot of developers make (including senior developers). PRESENTED BY GRAPHITE Ship AI-generated code without getting buried in massive PRs. Stacking breaks large changes into small, logical PRs that your team can review and merge in parallel, making development faster and smoother. Graphite is the tool that makes stacking effortless. It, Organizes your work, Highlights clean diffs,...

Cleaner alternative to Next.js Serverless Functions

Hey Reader, Happy New Year! As we begin the year, I have dropped an exciting build for you on Building a Full Stack AI SaaS with Next.js 16, React, Hono.js, Tailwind that helps you find your AI Learning Partners based on your Learning Goals. Make sure to subscribe to my Youtube channel, my goal for this year is to cross 100k subscribers so help me make it happen 💪. The source code alongside cheatsheet is completely free! so enjoy and let me know what you think. PRESENTED BY CLERK Meet the...

Tailwind snack

Hey Reader, I just wanted to say thank you for an amazing year 🙏 and for all the support. I genuinely wouldn’t get to do this full time without you. I came close to quitting a couple of times, but your comments and messages kept me going. Every time I heard from you, it reminded me why I started 🙌. I’d also love to know if I’ve helped you in any way. Just hit reply and let me know or share here. And honestly, this goes for any creator you follow too, a small message like that truly makes...