and i know, this demo doesn't use it and will work fine in opera if you spoof the UA, but it's a lot easier to develop if you pick a feature set you're going to support, and skim out any browsers that don't support that feature set.
and i know, this demo doesn't use it and will work fine in opera if you spoof the UA, but it's a lot easier to develop if you pick a feature set you're going to support, and skim out any browsers that don't support that feature set.
All it takes to detect websockets is:
if ('WebSocket' in window) { /* Web Sockets supported / } else { / Web Sockets not supported */ }
Ironically, this was taken from:
http://dev.opera.com/articles/view/introducing-web-sockets/
Also, every web developer with half a brain can use https://github.com/gimite/web-socket-js instead of locking out users unnecessarily by matching the User-Agent.
I'm picking on websockets because that's what's been annoying me at work lately, but it's just an example. the myspace demo doesn't even use websockets, it's totally irrelevant, but websocket support is a good cursory indication of whether or not it is a modern browser, and therefore how much development time will be added by officially supporting it.
After all, Myspace has a commonly-used bug reporting functionality.
> complain loudly to their friends
Because they won't complain about being locked out?
What does showing a message "Our superpowers have detected you're using an outdated browser. That must mean: a - You don't use the Internet very often. b - You're at your parents' place on the PC they bought in 1996. c - You work for the government or a big corporation." to users using a browser released in the past month stand up for, other than ignorance?
They are not enabled by default, that's all. So it's not just that the message is snarky and insulting, it reflects ignorance as well.
Overall support will include specific feature testing, regression testing, and user testing. Additionally, support tickets may be opened and introduce support costs in ticket management, escalation, and assessment.
Eventually people will start spoofing just to get in, and then you have a much worse problem in your hands. You know the Opera story. There is no excuse to block user agents unless it's commercial software with support contracts on the line.