This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Loaded optimized font jumps on page reload #50938
Labels
Font (next/font)
Related to Next.js Font Optimization.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Font optimization (next/font)
Link to the code that reproduces this issue or a replay of the bug
https://gitflic.ru/project/gabberex/portfolio-gabberex/file
To Reproduce
Install all dependencies, run the project in development mode. Refresh the page in the chromium browser. The check mark next to "Disable cache" is enabled.
Describe the Bug
layout.tsx
tailwind.config.js
Local font is loaded, path in public directory.
Development mode.
Disable cache in browser/network flag is set opposite.
As a result, when the page is reloaded, the font jumps. That is, it is loaded again and it is noticeable. Optimization crashed.
Rolled back to next 13.1.6, install @next/font 13.1.6 experimental: { appDir: true } - fonts are loaded without a jump.
Expected Behavior
Page reload, the font is loaded and does not jump
Which browser are you using? (if relevant)
Vivaldi 6.0.2979.25, Yandex Browser 23.5.1.71
How are you deploying your application? (if relevant)
npm run dev
The text was updated successfully, but these errors were encountered: