By pcx99
via dev.opera.com
Published: Apr 12 2007 / 12:36
Browser name sniffing, using scripts figure out which browser is used and then provide different content to them, is a widespread practice with a long history. Unfortunately these scripts are usually static, while browsers keep evolving.
This makes these scripts extremely fragile whenever an unexpected new browser or a new version happens to load the page. Simply put: Sniffing browser names can seriously damage the future health of your script.
Tweet
SaveShareSend
Tags: how-to, javascript, methodology
Comments
bloid replied ago:
We had this here: http://www.dzone.com/links/using_capability_detection.html
But it didn't make it out of the queue
pcx99 replied ago:
Hmm, the submission page didn't flag it as a dupe :-/
Voters For This Link (10)
Voters Against This Link (0)