Is there any module out there that could be used by my Django site to tell whether the client browser supports HTML5 and what features are supported?
-
why not use ajax and modernizer to report back once the page has loaded?Timmy O'Mahony– Timmy O'Mahony2012-08-01 22:54:28 +00:00Commented Aug 1, 2012 at 22:54
-
@TimmyO'Mahony - I am, indeed, using modernizr. But what I need here is a way to detect HTML5 support prior to the generation of HTML responsetamakisquare– tamakisquare2012-08-01 22:56:44 +00:00Commented Aug 1, 2012 at 22:56
-
1Does it have to be the first response? You could keep track of their moderinzer settings in the session once they've loaded a page. Otherwise it's going to guess work: you'll have to use User Agent's etc. which isn't reliable at all (it's similar to the problem of trying to guess what resolution the user has for serving up mobile/tablet pages)Timmy O'Mahony– Timmy O'Mahony2012-08-01 23:09:49 +00:00Commented Aug 1, 2012 at 23:09
-
@TimmyO'Mahony - I guess that's the best I can do for now. Thanks.tamakisquare– tamakisquare2012-08-01 23:17:08 +00:00Commented Aug 1, 2012 at 23:17
Add a comment
|
1 Answer
Sadly no. This is something that you'll need JavaScript client to do. Especially something like http://modernizr.com/
One way to do it would be to run modernizr and send results to back end.
If you would be really optimistic, you could build a list of User-Agents and decide upon that. But good luck with keeping which things works in which version of Chrome and Firefox.
1 Comment
AI Generated Response
if 'ie' in user_agent.lower(): return false;