Our first tech post talks about how to identify if our visitor has a mobile browser.
There're lots of way and libraries that do this, but we wanted to keep it as simple as possible. So, in the next few lines we got the solution:
var ua = navigator.userAgent.toLowerCase();
var mobile = (/iphone|ipod|ipad|android|xoom|sch-i800|playbook|silk|tablet|kindle|smartphone|iemobile|palm|mini|blackberry|bb10|windows\sce/i.test(ua));
Noticeably, more user agents will have to be added to the list above with the passage of time, but I believe this is a good starting point.