Is there a way to detect 3G and 2G connections on mobile phones and handheld devices?
Like If I want to deliver High-end Website when user is on 3G and Highly optimized version if user is on 2G.
Is there a way to detect 3G and 2G connections on mobile phones and handheld devices?
Like If I want to deliver High-end Website when user is on 3G and Highly optimized version if user is on 2G.
Some networks send connection type as http header.
Your best bet would be to do a speed test when user connects and try to store it on the client as cookie
In Android 2.2+ there's a JS object for that.
You can write out a class for CSS use based on connection type. But it's not available on iOS for mobile web sites as far as I know.
The code is from slide 24 in this presentation:
http://davidbcalhoun.com/present/mobile-performance/