News for hackers. Stuff that matters.
Re:Onedrive is slow on Linux but fast with a “Windows” user-... by jacquesm on Wednesday March 22, 2017 @08:09PM (#13936349)
> Are you saying you would ship HTML5 code to platforms you don't know support HTML5?

No, I would stick to open standards supported by the vast majority of users until the next wave was supported by the vast majority of users and so on. I would never detect a user agent and make crippling decisions based on the response.

And if you do decide to resort to such trickery then you'd better make sure that you extract the maximum out of each platform that presents itself otherwise you open yourself up to claims of favoritism.

As for the HTML5 video, given that I've pioneered that stuff and worked very hard to keep the video-on-the-web scene plug-in free and working with all browsers it was with serious reluctance that I eventually switched to H.264 encoded video with flash as the player because to me that was the wrong way to go about it but the market literally demanded it.

I suspect that if we had not had flash a proper <video> tag would have been implemented ages ago.

Re:Onedrive is slow on Linux but fast with a “Windows” user-... by eridius on Friday March 24, 2017 @02:52AM (#13947175)
"stick to open standards supported by the vast majority of users" is exactly what you get when the user agent isn't known. It just turns out in this case that it's unoptimized and performs pretty badly.