Make Client Side Data Available Server Side
What you really want to know is stuff like "how big is the screen I’m serving to?" or "does the device I’m serving to have touch events?" – that way you can serve resources that are appropriate to those questions. Is there a way to get accurate client side information on the server side?