2 ms·
Several Google sites use user-agent sniffing. I've seen comments from Youtube devs that say progressive enhancement is too slow, so they use the useragent to c
by shakna 7y ago
Several Google sites use user-agent sniffing.
I've seen comments from Youtube devs that say progressive enhancement is too slow, so they use the useragent to choose what bundle to send.
- daxterspeed 7y agoYouTube could likely use Service Workers in modern browsers to determine what bundle to load. If so then our modern browsers could simply send [browser]/[major version] (eg. Google Chrome/78 or perhaps Blink/78) while old browsers continue to send their legacy mess.
- danShumway 7y agoIt's worth calling Google out particularly here, because not only do they do useragent sniffing, they also launch new services that use useragent sniffing to block any browsers that aren't on a compatibility whitelist. I get it, sometimes sniffing is necessary for some things. But it's embarrassing to see a company of Google's size and caliber so reliant on it, and to see their developers so quickly accept that they're just going to abandon what is one of the cornerstones of good web development.