Next.js Discord

Discord Forum

CSS modules takes much time to apply

Unanswered
Himalayan posted this in #help-forum
Open in Discord
HimalayanOP
hello i've got an issue, is that when i refresh my page it first display default mui components, then only after 50seconds it applies my css (i use csss.modules) and i've put all my code inside app folder, what could be the issue ?
Edit: object styles work just fine, the problem seems to be only loading css file...

5 Replies

Are you using the newest version?
HimalayanOP
"next": "13.4.19", this is my version
Try using the latest. Also try it on a page without MUI components
HimalayanOP
i did what you said,
yeah it only takes time when it's applied to an mui component (i'm trying to change NavBar backgroud-color),
while it loads normally on norma jsx,
is there a way to solve this ?
Idk tbh.