You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UnoCSS in dev keeps the boot gate and hides the first paint #725
nexy/vite.py:58-60 keeps the boot gate whenever uno.config.ts exists, because UnoCSS
utilities only exist as a virtual module and there is no stylesheet link to block the first
paint. The gate is <style id="nexy-boot">html{visibility:hidden}</style> with a 2500 ms
fallback timeout (nexy/vite.py:50-55). The page is therefore blank for a moment on a cold dev
load.
#715 removed the gate for projects whose CSS is a real file. UnoCSS projects are still behind it.
Change to make
Expose the generated UnoCSS as a real stylesheet link in dev, or inline its CSS in the served
document, so the gate can be removed for UnoCSS projects too. Measure when the gate is removed
before and after the change.
Out of scope
The UnoCSS production build and CSS hot reload, which already work.
Checks
An e2e test on a project with uno.config.ts finds no nexy-boot element in the served HTML and
records a first paint with content. FCP and CLS from #713 do not get worse on plain CSS projects.
Activity