Is there a way to find out in java / php if the user is on a mobile device so that the code generated is optimized for the browser. This way i could stop some of the time consuming java code, php code, and html code that is slowing down my users.
My company is a 10 year old ecommerce company with a massive site and lots of time consuming calls. I don't want to create a separate mobile site as i don't like having to maintain two code bases. What i am trying to do is create a simple mobile skin over the current site and optimize the key pages, with a navigation connecting them.
Thanks in advance!