Skip to content

#performance

7 posts

Posts tagged performance

How to fix Cumulative Layout Shift in Next.js

CLS is caused by content that arrives without reserved space: images, fonts, ads and client-only widgets. How to find each shift and reserve space for it.

5 min read#performance#nextjs#react

How to fix Largest Contentful Paint in Next.js

LCP is usually one element and one slow step. How to find both in Next.js: the image, the font, the server response, and the render path that delays them.

5 min read#performance#nextjs#react

Next.js App Router caching: the four caches explained

The four caches in the Next.js App Router — Request Memoization, Data, Full Route and Router Cache — explained with code, plus a model for revalidation.

2 min read#nextjs#web-development#performance