Repository navigation
Replies: 8 comments
|
possibly relevant:
|
|
I really don't want to rename the issue to "Could Dark Mode Work Without Javascript?", because closing it with "yes" doesn't fix the problem, and I do believe the site's general usefulness will be immeasurably improved by improving its support for clients that render statically. |
I agree. I would love if Stacker News would serve only HTML and CSS and not require any Javascript, but since we are using React to render content, a Javascript framework, I don't see this as feasible any time soon, sorry. We might be able to make dark mode work without JS, but the rest of the site will still not work, so I'm not sure how useful it is to make dark mode work without JS. Maybe I'm wrong. |
|
#2501 is going to bring static content support via automatic HTML generation. For now, like @ekzyis said, we're heavily JS-dependent and it's not a priority to become more independent. But static content is still something we are going to be able to do in the near future. |
|
Static content != no Javascript. I think @adlai means with "render statically" that there's no javascript required |
|
Yes, was just mentioning that the PR I referenced is going to create exportable HTML that we can serve in a no-JS environment. But it doesn't mean that we can create the above-mentioned no-JS environment any time soon. Still, I would like to keep this issue around because it's a good idea! |
|
I don't mean that prefixing |
that would be the gold standard; CSS that defers the scheming to the operating system and has light/dark defaults which work well enough that the neurotypical reader needs no client-side tweaking, and javascript only used for implementing interactions like zapping and posting. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Describe the bug
modern operating systems allow static pages to defer themeing to the user preferences.
disabling javascript increases power consumption [white background] unless specific additional actions taken to override default themes in ways that excessively reduce designer freedom [e.g. forcing "high contrast" mode]
the site's
//*[@id="__next"]/footer/div/div[1]/span[1]/svgaction seems to require javascript.Screenshots
no
Steps To Reproduce
Expected behavior
website should not reduce my will to keep using it
Logs
No response
Device information
Additional context
this is taking too long
All reactions