User-Agent Sniffing

21 November 2006

I think User-Agent sniffing is a bad idea, and here’s why:

Well, a while ago, I discovered that Google Maps had a cool zooming transition when you scrolled your mousewheel. Unfortunately, it didn’t work on Linux for some reason. It was weird, because I was using Firefox on both Windows and Linux, but the gradual zooming only worked on Windows.

I thought it might have been some “speed check” that was preventing the effect running on Linux. Perhaps it wasn’t up to the job? However, I installed a User-Agent changer plugin for Firefox on Linux, changed the OS to lie that it was Windows, ran Google Maps and got the cool zooming effect. It worked perfectly and just as smooth as it was on Windows.

So there you go. Don’t sniff for User-Agents — it’s evil.

2 replies

Leave a reply