NextJS Performance Checklist

endymion1818

Ben Read

Posted on August 6, 2021

NextJS Performance Checklist

Building React applications with NextJS is a great way of getting things in front of customers quickly. But you might find that they aren't using your site because it's too slow. Here's a list of things you might be able to do to improve the performance of your NextJS application.

I've geared this towards NextJS for a few specifics I wanted to include, but this list can be applied more generally too.

Applications

Images

Styles

Fonts

Scripts

Data

  • Only fetch data you need (consider using GraphQL)
  • No API chaining (consider using GraphQL)
  • Minimise data normalisation (offload to a standalone function or backend)

Third-party scripts

Perceived performance

Testing and analysis

  • PRs that degrade performance are identified in the pipeline
  • Frontend performance is measured (https://speedcurve.com/ )
  • Frontend performance is regularly analysed
  • Analysis is turned into actionable backlog items

There are two benefits to implementing as many of these as you can: conversions will likely improve because more users can use your app. And also you will save your own costs: less downloads, less bandwith and where you can cache from origin, you'll save on infrastructure costs.

I'm sure this list isn't quite complete, let me know if there's anything I've missed!

💖 💪 🙅 🚩
endymion1818
Ben Read

Posted on August 6, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related