Skip to content

theme-init.js 404s in production, causing dark theme flash #3175

Closed

Description

@david-crespo

https://oxide.sys.r3.oxide-preview.com/system/silos

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

  1. self-assigned this
    on Apr 9, 2026
  2. changed the title [-]`theme-init.js` 404s in production[/-] [+]`theme-init.js` 404s in production, causing dark theme flash[/+] on Apr 9, 2026
  3. david-crespo commented on Apr 9, 2026

    @david-crespo
    CollaboratorAuthor

    Problem is we only serve static assets at /index.html and /assets/* and this file is not in assets/. The fix is to move it to assets/.

    https://github.com/oxidecomputer/omicron/blob/b2b1e393a4072f041ee833656fcd57e683704d0e/nexus/src/external_api/console_api.rs#L409-L439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions