4 ms·
To anybody who saw version 1 of this function a while back I have completely rewritten this function to be less than 1KB (558 bytes to be exact). I’ve also prov
by justindocanto 15y ago
To anybody who saw version 1 of this function a while back I have completely rewritten this function to be less than 1KB (558 bytes to be exact). I’ve also provided ~30 detailed results from tests against some of today’s commonly used gadgets and their user-strings (iphone, ipad, hp phones, blackberrys, windows boxes (98/XP/Vista/7), tmobile sidekick, palm devices,google nexux s, cricket phones & more)
Also have a demonstration (look under 'Support') on the bottom detecting if your browser is a mobile device. Really useful if you're using PHP. if you use it... enjoy!
Appreciate any feedback.