https://bugzilla.wikimedia.org/show_bug.cgi?id=27690

Terence Eden <bugzilla.wikimedia....@shkspr.mobi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla.wikimedia.org@shks
                   |                            |pr.mobi

--- Comment #4 from Terence Eden <bugzilla.wikimedia....@shkspr.mobi> 
2011-03-04 14:14:06 UTC ---
May I *strongly* suggest that you do not use JavaScript to perform the
redirection.  Any device detection should be done server-side.

Many mobile phones - especially those in the developing world - don't have
JavaScript, or have non-compliant implementations, or have it switched off for
performance reasons.

Even if a device does use JS, it still has to load the entire page of HTML
which for many people will be a slow and costly experience.  If people are
paying per MB on a GPRS connection, they will not get a great experience.

Best practice would be to use a service like DeviceAtlas
(http://deviceatlas.com/) or WURFL (http://wurfl.sourceforge.net/) to parse
User Agent strings on the server, then 302 redirect them.

Alternatively, an .htaccess modification would work as well.

I don't know enough about Wikimedia architecture to know which is the best in
this case.  What I do know is relying on client-side redirection is not safe.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to