View Single Post
Old 21-04-11, 09:11 PM   #9
christopher
Member
 
christopher's Avatar
 
Join Date: Apr 2009
Location: Chester, UK
Posts: 795
Default Re: anyone know a simple html rediection for when using browsers?

Don't do the check in JavaScript. Too many reasons to list that you most likely won't understand but here's two for starters, firstly a lot of mobile devices won't have JavaScript enabled, and secondly you'll be serving a fully loaded site to the mobile user and then redirecting them to the optimised trimmed down version.

So you're forcing them to download a lot of data for no real reason, expensive on a lot of mobile devices (don't just think about people who have contracts with included data bundles).

By doing it at server level (how depends on your setup; Apache, IIS, etc) you avoid this and serve the low bandwidth version immediately.

What's your portfolio for? How does having it in Flash benefit it? Can HTML/CSS/JS not achieve what you want?

And what percentage of traffic (check server logs) is coming from mobile devices? It's not just Apple's devices which don't support Flash, older versions of Android and those with unsupported processors (< ARMv7) won't have decent, if any, support either. Same goes for a lot of Symbian devices.
christopher is offline   Reply With Quote