4 ms·
why not use the user-agent?
by avipars 6y ago
why not use the user-agent?
- jefftk 6y agoThe UA doesn't tell you anything about the screen the person is viewing on or the size of their window. If I resize a window on my desktop to 450x1000, showing me the layout for narrow screens is likely the best option.
- thesuitonym 6y agoPerhaps the answer is not to change elements on the website, but to design the site in such a way that it looks good at any resolution. We used to do this before responsive design took over.
- jefftk 6y agoResponsive design is about making the site look good at any size. Can you give an example of the "old way" vs the "responsive design" way?
- bryanrasmussen 6y agoI was going to say because it's been deprecated but then I saw this https://deviceatlas.com/blog/postponed-googles-attempt-deprecate-and-freeze-user-agent-header https://deviceatlas.com/blog/postponed-googles-attempt-depre...
- madeofpalk 6y agoBecause a single user agent and present websites at multiple sizes. Consider an iPad which can display a website at three vastly different sizes. Full-width, half-width, and roughly 1/5th width docked to the site. They should have at least two different layouts.
- Nightshaxx 6y agoWhat if the person is using an Android phone connected to a monitor? As someone said in another thread: you design a view for a screen size not a device.