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

Hello Reader, Thanks so much for joining Engineering Manager Blueprint Workshop! ๐Ÿ™ I had such a great time hanging out with you live, answering your questions, and geeking out about EAs promised, hereโ€™s everything I mentioned (and a little extra to help you grow even faster): ๐ŸŽฅ Workshop Replay I spent the entire day yesterday editing it so you can watch it without any interruptions. I hope this helps! As promised, here's the recording: Watch now ๐ŸŒŸ ๐Ÿšจ Available until Sunday, Sept 7 at 11:59pm...

React lazy

Hey Reader, First of all, thank you so much for helping me pick my next course ๐Ÿ™. Iโ€™ve received hundreds of replies, and thereโ€™s already a clear theme coming through. Iโ€™m excited to spend some time reflecting on it before sharing what Iโ€™ll be working on next. If you havenโ€™t had a chance to share yet, Iโ€™d still love to hear from you. Your reply means a lot and helps me help you. ๐Ÿ‘‰ Drop your reply here Now, I love solving hard problemsโ€ฆ but auth isnโ€™t the one Iโ€™d choose again. What started as...

Hey friend, โœจ Iโ€™m thrilled to share that Iโ€™m bringing back my popular workshop, Engineering Manager Blueprint and this time itโ€™s completely FREE ๐ŸŽ! ๐Ÿ“† When: September 3rd, 2025 - 12:00 - 1:30 pm EST ๐Ÿคฉ ๐Ÿ“Where: Zoom Figuring out how to succeed as an Engineering Leader in 2023 can feel like walking through mud. Thankfully, after leading 100+ developers and leaders, Iโ€™ve developed a system to make that walk feel shorter and easier. In this 90-minute workshop, you'll learn: A 8-part framework for...