Uploaded February 2023 | Updated December 2026, 3 hours ago
How to self-host your fonts using the new next/font package in NextJs 13 to improve your core web vitals by preventing cumulative layout shift that typically happens when loading fonts from external hosting services like google fonts.
ππΌ The Ultimate NextJs Course
π hamedbahram.io/courses/nextjs
ππΌ @next/font documentation
π nextjs.org/docs/api-reference/next/font
ππΌ What is cumulative layout shift
π https://web.dev/cls
CHAPTERS
0:00 Intro
0:30 Getting started
3:00 Cumulative layout shift
3:20 next/font package
5:40 Using custom fonts
6:00 With tailwind
9:04 Outro
How to self-host your fonts using the new next/font package in NextJs 13 to improve your core web vitals by preventing cumulative layout shift that typically happens when loading fonts from external hosting services like google fonts.
ππΌ The Ultimate NextJs Course
π hamedbahram.io/courses/nextjs
ππΌ @next/font documentation
π nextjs.org/docs/api-reference/next/font
ππΌ What is cumulative layout shift
π https://web.dev/cls
CHAPTERS
0:00 Intro
0:30 Getting started
3:00 Cumulative layout shift
3:20 next/font package
5:40 Using custom fonts
6:00 With tailwind
9:04 Outro










