32 points · by aj · 17y ago · 21 comments
"Browser sniffing — unless you’re writing a web stats application — is always a bad idea. It’s a misguided attempt to send different content to different user agents. This is never scalable — you can’t change every website you’ve ever made every time a new browser version comes out. It is also not future-proof, as highlighted by this article."
cool
If you're Firefox with 25% share and a strong developer following, then MAYBE you could get away with that. Opera, treading water as fast as it possibly can, would simply die if it didn't render every existing page on the web correctly.
Approximately 40 million mobile phones have shipped with Opera pre-installed. Opera is the only commercial web browser available for the Nintendo DS and Wii gaming systems.
http://www.w3schools.com/browsers/browsers_stats.asp
You could certainly read that to mean that Opera has doubled its market share since early 2003.
You could also read that to mean that Opera has remained at about 2% market share for six years now, during which time Firefox has been born and risen to about 40% penetration, and during the last six months of which Google's browser has been both released and passed them by a factor of 3.
So yes, Opera is not going anywhere. You can read that to mean that they're going to stick around if you'd like. You can also read that to mean that they are not now, nor have they ever been a real competitor in the Browser market.
That being said, Opera is the only modern web browser that we no-longer test for on Twiddla. For a while we were putting in little Opera-specific hacks to work around its painfully slow rendering engine (which ironically is the reason it's such a pleasant browser to develop against), but eventually it became too much effort to be worth it considering the 1.35% of our traffic that it comprises.
So yeah, I'm with you in hoping it doesn't go away. Still, I'll stand by my statement that breaking the user experience to make a point would be a fatal mistake for them.
Legacy code comes back to bite us in the rear again!
Compatibility mode.
In a way this solution is compatibility mode. "Broken" detection scripts see version nine (which is good enough), scripts that know about Opera 10 sees version 10.
Think about the people who have to deal with the UA string for legitimate reasons (analytics...) they will have to deal with a special case (if (UA == "Opera/9.80...")).
It's seems a bit like a ugly hack to me.
The only way to make it work reliably is to look at the window.documentMode property which requires changing your code, thus defeating the point of the compatibility mode in the first place.