4 ms·
1) User agents lie. Frequently. 2) A user agent doesn't encode any information about the actual metrics of the device. Doing layout by user agent is basically
by cheald 13y ago
1) User agents lie. Frequently.
2) A user agent doesn't encode any information about the actual metrics of the device.
Doing layout by user agent is basically a worst-case hellhole of browser-specific codebase fragmentation. There's a very good reason why best practices have been trending away from "test for vendor class" and towards "test for agent capabilities".
- benatkin 13y agoWell a sufficiently complex framework could deal with it, by making another trip to the server if it discovers the code being sent down the first time isn't good enough.