this post was submitted on 19 Apr 2025
177 points (98.9% liked)
Today I Learned (TIL)
7314 readers
3 users here now
You learn something new every day; what did you learn today?
/c/til is a community for any true knowledge that you would like to share, regardless of topic or of source.
Share your knowledge and experience!
Rules
- Information must be true
- Follow site rules
- No, you don't have to have literally learned the fact today
- Posts must be about something you learned
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It would be better to handle it by detecting what device you’re on rather than having encoded into the url. That way it wouldn’t matter what device the page was shared from.
usually it is just a redirection. One of the reasons wiki does this is that their stack is more older device friendly (for the most part, you can use wikipedia perfectly fine without any js), and having adaptive view usually requires js (there are some other ways too), but wiki is constrained. So when browser recieves a request from a mobile user agent, they just redirect to mobile site.
Its not just old devices. I turn js off for security. There's a whole class of high-risk users that this is for. Even on modern hardware and software.
me too, i was simplifying it. I have a global js disable rule, and whitelist a shorter list