i absolutely hate how the modern web just fails to load if one has javascript turned off. i, as a user, should be able to switch off javascript and have the site work exactly as it does with javascript turned on. it’s not a hard concept, people.
but you ask candidates to explain “graceful degradation” and they’ll sit and look at you with a blank stare.
Blame the ui frameworks like react for this. It’s normalized a large cross-section of devs not learning anything about how a server works. They’ve essentially grown up with a calculator without ever having to learn long division.
Most don’t even know
@media (prefers-color-scheme: dark/light)
, rather cobble something with JS that works half of the time and needs buttons to toggle.A button to toggle is good design, but it should just default to your system preferences.
Fair, some websites do need JavaScript though. Such as webapps. Could they be server-side rendered?
Depending on the web app, the real solution would be a much more simplified JavaScript free version
Why spend time and money on something that will end up being only half functional. It costs money to support that.
For the sake of graceful degredation, that’s the whole point of the post