New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next 14 layout shift (maybe css load after render) #840
Comments
This looks like an issue between Emotion and Next - Emotion probably needs to have a style cache set. Check this thread for some examples on this. |
That can't be solution I think. I think problem is about server component and client component. But that component (registry) also using client component. To use full features in next js app dir, we need to use server component. Anyway, point is server component is rendered at server but server have no css to render |
2023-11-23.2.24.30.mov
copied from example project
using app dir and next 14
package.json
src/app/GlobalStyles.js
src/app/layout.tsx
src/app/page.tsx
It caused layout shift
seems like css is load after rendering
The text was updated successfully, but these errors were encountered: