alex32's avatar
Level 2

Vite | CSS not fully loaded

I'm using laravel 11 with Vite 5.2.

Vite builds the package without errors and the pages seems to load fine except, sometimes some fonts are missing. This may happen after a fresh login or when the page stays inactive for long. To get things right I need to force a reload with Ctrl-F5. (didn't happen before using Vite) Why is it happening and how do I fix it? Thanks

ss1

0 likes
3 replies
Tray2's avatar

Is this in your dev environment or in your prod environment? If it is the latter I suggest building the assets.

alex32's avatar
Level 2

@Tray2 It's in my prod environment. The assets are built there (no errors)

Please or to participate in this conversation.