this post was submitted on 23 May 2026
9 points (76.5% liked)
No Stupid Questions
4101 readers
36 users here now
There is no such thing as a Stupid Question!
Don't be embarrassed of your curiosity; everyone has questions that they may feel uncomfortable asking certain people, so this place gives you a nice area not to be judged about asking it. Everyone here is willing to help.
- ex. How do I change oil
- ex. How to tie shoes
- ex. Can you cry underwater?
Reminder that the rules for lemmy.ca still apply!
Thanks for reading all of this, even if you didn't read all of this, and your eye started somewhere else, have a watermelon slice ๐.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Theres no way to control that.
Some of us are professional software developers old enough to have started programming in Windows 95. Rather than being dismissive, maybe you should question whether you have a full understanding of how everything works.
Light / dark mode doesn't require a server request. It's a client side API. The client side JavaScript or CSS can request to know what mode the system is wants and can adjust itself accordingly.
The problem is that there's no way of preventing the client from knowing what mode it ends up in and sending that information back. The client need to be able to query what's rendered for a variety of reasons, not least of which is maintaining backwards compatibility with all of the 90s and 00s era web APIs that use these to update what's displayed.
You can disable JavaScript if you want, and that will prevent much of this information being sent back, but you'll also break most websites because most websites need client side JavaScript to provide a modern UX that people expect, because at a fundamental level, dynamic software that responds to what the user is doing and adjusts itself accordingly is more powerful then static software that just consists of a preset information laid out. You can build basic websites that consist of just static documents and forms and work without JavaScript but you're limited to basic document sites without interactivity like blogs.