How to avoid FOUC / FOUT in Next.js 14? #62912
Unanswered
lancejpollard
asked this question in
Help
Replies: 2 comments 3 replies
-
I'm having the same issue; did you ever find a solution / answer to this outside of this discussion? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Avoiding FOUT/FOUC in Next.js 14Issue: Key Solutions: 1. Use
2. Preload critical fonts in
3. Leverage static asset caching
4. Avoid late CSS injection
5. Use a proper fallback font stack
References:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I have FOUT/FOUC in my app every now and then when it doesn't use the cache for some reason. Notice how after a few hard refreshes on my local env, there is a quick FOUT in there every few tries.
How can this be avoided? What are the key techniques?
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions