Hacker News new | past | comments | ask | show | jobs | submit login
Browser Detection without Javascript (rudolphina.org)
31 points by e1ven on Jan 27, 2009 | hide | past | favorite | 6 comments



Why would you use this? And why would anyone disable javascript? Nothing makes sense anymore...


Its not necessarily about disabling javascript... its that js is often a poor way of detecting browsers. Remember how the User-agent header was supposed to identify the browser? All the browser's put arbitrary crap there so they will be served this or that version of html. Now browser's are all trying to look like each other in js land for the same reason -- so that apps work right. Sometimes these css subtleties are all you end up with.

The reason you would use this is that you can optimize your application in all sorts of arbitrary ways. maybe string concatenation is faster a certain way in safari, great; lets just make sure its safari before we do that optimization.


This seems equally brittle. If I'm reading the XSLT correctly its based on the name of the xml library that a particular browser ships with...


I thought we were doing feature detection these days...


And why would anyone disable javascript?

Sometimes I follow links to poorly implemented or managed sites, some of which pass along unfiltered content. I disable all executable content by default to ensure those places don't inadvertently screw up my browser state. For me executing javascript as a privilege I'm only willing to extend to sites that have earned my trust.


To speed up browsing on a slow connection and for added security.

But it's OK, I have it enabled for mibbit. ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: