News for hackers. Stuff that matters.
Re:GoatCounter – Simple web statistics, with no tracking of ... by RL_Quine on Tuesday January 14, 2020 @11:48AM (#22046572)
You can do this with only media queries in CSS, most likely.
Re:GoatCounter – Simple web statistics, with no tracking of ... by bransonf on Tuesday January 14, 2020 @06:39PM (#22050378)
The disadvantage there is that sometimes you want to give the user a totally different site if their client is mobile. CSS queries are indiscriminate in that a smaller browser window may trigger the “mobile” css. Likewise, many tablets have similar screen sizes to some laptops, yet often you don’t want to present the same UI to a tablet and laptop.