who-jonson / sakai-nuxt

Starter Admin Template based on Nuxt 3 and PrimeVue 3
sakai-nuxt.vercel.app
MIT License
265 stars 36 forks source link

CSS Delay/Flickr when refreshing the page (Not just first time load) #160

Open nk-gears opened 1 year ago

nk-gears commented 1 year ago

Thanks for this beautiful theme and we have been using for one of our Project. We noticed that when we refresh the page the css styles are applied with initial latency and creates some flickering effect in the UI.

Did you noticed this?. Is there a workaround for this ?

I tried in the Online Demo as well in our Local Setup https://sakai-nuxt.vercel.app/demo/formlayout

DreadfulCode commented 6 months ago

Dealbreaker.

ItsMeRomian commented 3 months ago

Easy fix, just add the following line for the theme you like to use in nuxt.config.ts under app.head.link

{ rel: 'stylesheet', href: '/themes/tailwind-light/theme.css' }

And remove the theme switcher and theme composable, as you probably dont want to use that in your finished product