Skip to content

Conversation

@oblakeerickson
Copy link
Contributor

Adds a noscript tag that displays a message that this site requires JavaScript to run.

The easiest way to test this locally is to use Chrome since it can disable JavaScript per tab instead of globally. Open the dev console and click the gear icon and check "Disable "JavaScript" in the Debugger section.

I skipped adding a test since it is a static change and playwright requires js to run.

resolves #2928

Adds a noscript tag that displays a message that this site requires
JavaScript to run.

The easiest way to test this locally is to use Chrome since it can
disable JavaScript per tab instead of globally. Open the dev console and
click the gear icon and check "Disable "JavaScript" in the Debugger
section.

I skipped adding a test since it is a static change and playwright
requires js to run.

resolves oxidecomputer#2928
@vercel
Copy link

vercel bot commented Dec 16, 2025

@oblakeerickson is attempting to deploy a commit to the Oxide Computer Company Team on Vercel.

A member of the Team first needs to authorize it.

@oblakeerickson
Copy link
Contributor Author

And this is how it looks:

CleanShot 2025-12-16 at 11 31 24@2x CleanShot 2025-12-16 at 11 36 23@2x

@david-crespo
Copy link
Collaborator

Thanks for getting this started. I tweaked the colors and layout a bit.

image

@oblakeerickson
Copy link
Contributor Author

Nice! I like it.

@david-crespo david-crespo enabled auto-merge (squash) December 23, 2025 20:44
@david-crespo
Copy link
Collaborator

It turns out we have the CSS in prod, just not in local dev, which loads the CSS through JS. You can test this with npm run preview.

2025-12-23-noscript.mp4

@david-crespo david-crespo enabled auto-merge (squash) December 23, 2025 20:53
@david-crespo david-crespo enabled auto-merge (squash) December 23, 2025 20:56
@david-crespo david-crespo merged commit be1cfc6 into oxidecomputer:main Dec 23, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fallback message for when JavaScript is turned off

2 participants