Currently, I am working on a Next.js and Spring Boot project. However, I am facing issues with the loading of CSS files as they are taking a considerable amount of time to load. When I open a page, initially it appears without any styling, but after a few seconds, the styles kick in.
To address this issue, I created a folder named "assets" in the public directory and placed all my CSS files there. Since I have specific CSS requirements for both the dashboard and home page, I cannot use globals.css.
If anyone has suggestions on how to resolve this problem without depending on globals.css, please feel free to share.