-
Notifications
You must be signed in to change notification settings - Fork 0
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
Chakra ui theme is loading with freeze #8
Comments
This is due to pre-rendering mechanisms. const RecordForm = dynamic(
() => import("CLIENT component with chakraUI components"),
{
ssr: false,
}
); But what are conventions? I compared first contentful paint timings
Drawbacks of prerendering: input fields will be reset after app loading is fully finished. So need some skeleton maybe. |
Increased speed of loading chackra theme (with ssr enabled) by adding theme script to layout.jsx at the beginning of a body https://chakra-ui.com/docs/styled-system/color-mode#adding-the-colormodescript
but still there is 100-200ms blinking at the start of reloading process blink.movperformance.mov |
Kinda fixed it by editing |
Probably the problem is because server component which returns that client component is fetching data and prevent theme from loading correctly
The text was updated successfully, but these errors were encountered: