3 ms·
Excuses, excuses ... Detecting required features by browser identification is not only so 90's, it's downright ridiculous. All it takes to detect websockets is
by lazyjones 14y ago
Excuses, excuses ... Detecting required features by browser identification is not only so 90's, it's downright ridiculous.
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/ 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 https://github.com/gimite/web-socket-js instead of locking out users unnecessarily by matching the User-Agent.
- notatoad 14y agoIt's not about detecting features. It's about testing: When you're developing a web app, each new browser you choose to support increases your testing time: starting out developing for chrome, adding safari support usually is just a formality. adding firefox support means a couple extra hours of testing, but everything usually works. adding opera support means your tests are going to start failing, and a bunch more work. 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.
- akldfgj 14y ago"Hey friend, it looks like you are using Opera. Beware, pal, that we don't go to the opera down here on the ranch, so there may be rough-riding ahead! Try one of these nifty browsers buddy, or sally forth into the unknown. OK, pardner?"
- mburns 14y agoThis is a preview. Complain if they launch publicly like this, otherwise, cut them some slack.
- frozenport 14y agoIT WILL BE TOO LATE IF WE COMPLAIN WHEN THEY LAUNCH PUBLICLY.
- __abc 14y agoYou can put all the disclaimers you want before a use and they will "venture forth into the unknown". However, they will ignore (if they even read/understood it) your warning and then bury you in support tickets, complain loudly to their friends, and leave you with a mess to deal with and no real clean/easy way out.
- nholland 14y agoI second this... users rarely read anything & remember even less. If you let them in, then they expect it to work. Its unfortunate for Opera, but we're doing the same for our beta launch.
- pjscott 14y agoAnd lest anybody say it won't be that bad, yes it will be that bad. There are some remarkably vitriolic people on the internet.
- jarek 14y ago> then bury you in support tickets After all, Myspace has a commonly-used bug reporting functionality. > complain loudly to their friends Because they won't complain about being locked out?