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
theme-init.js 404s in production, causing dark theme flash #3175
Just noticed this, ugh. It means the light theme will flash dark first in some browsers. I see it flash in Firefox and Safari but not in Chrome — hopefully most of our users are in Chrome.
I thought I made it so theme-init.js would end up in the bundle in the right spot, but I must have messed it up.
Activity
[-]`theme-init.js` 404s in production[/-][+]`theme-init.js` 404s in production, causing dark theme flash[/+]david-crespo commentedon Apr 9, 2026
Problem is we only serve static assets at
/index.htmland/assets/*and this file is not inassets/. The fix is to move it toassets/.https://github.com/oxidecomputer/omicron/blob/b2b1e393a4072f041ee833656fcd57e683704d0e/nexus/src/external_api/console_api.rs#L409-L439