News for hackers. Stuff that matters.
Re:Lemmy, an open-source federated Reddit alternative, gets ... by aembleton on Monday June 29, 2020 @04:43AM (#23675664)
> the tendency of pretty much every site out there to use the window width as a means to differentiate between mobile and desktop sites

How would you differentiate them? At least with the width you can use css media queries so no Javascript is needed.

Re:Lemmy, an open-source federated Reddit alternative, gets ... by badsectoracula on Monday June 29, 2020 @08:57PM (#23685370)
By using some mobile specific pseudo-selector? There are pseudo-selectors for printing, there could be selectors for mobile too.

Not sure, i'm not into web development, i just see using the window width as the wrong way. I keep my window down to that size even when i'm using monitors with larger resolutions (1080p or 1440p), it is a bad idea to assume window width == monitor resolution == device type.