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 5000+ 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

Hey friend, I'm excited to announce the launch of my new AI SaaS project - SpeakEasy AI ↗️. It allows you to convert your video into a blog post. You can upload any video you like, and it will turn into a beautiful, SEO-friendly blog post. If you have been holding off from shipping a SaaS app, now is your chance! Here is the entire course, πŸš€ Important News To better focus on the upcoming Next.js Course launch πŸš€, Frontend Snacks (this newsletter) will transition into a monthly newsletter. It...

Open AI Whisper with UploadThing

Hey friend, I have been heads down creating a free AI SaaS tutorial which is going to be massive on my channel. This will teach you how to ship a AI SaaS. I can't wait to share more. Based on popular demand, I'm running the Next.js Workshop ↗️ for the final time. I won't be running this workshop again. It is a Live 1-day Next.js Workshop that teaches you the best practices to design, build and deploy full-stack production-ready apps. ⏰ When: September 3rd, 9am to 3pm ESTπŸ“ Where: Zoom 🎁 For a...

Hey friend, I gave a talk at React Rally ↗️ on React Framework Showdown and compared Next.js, Remix and Astro. I didn't hold back and gave some hot takes 🌢️. It can be nerve-wracking to give your opinions when you have so many folks in the audience actively working on the frameworks. The talk went really well. I'll let you know once the recording is out. But today's newsletter will focus on parts of the talk. -> I forgot to hit this newsletter's schedule button while travelling, so that's my...