News for hackers. Stuff that matters.
Re:Messenger.com Now 50% Converted to Reason by marksomnian on Sunday September 10, 2017 @03:46AM (#15211218)
Is there a reason you guys are doing UA sniffing instead of a Modernizr-esque strategy? Would it have too much of a runtime cost? Or is it just about syntax and serving a transpiled blob would make it bigger? Genuinely curious
Re:Messenger.com Now 50% Converted to Reason by spicyj on Sunday September 10, 2017 @03:54AM (#15211251)
We do this both for polyfills and for different compiled code in some cases. Since we need this on the first request (and care about perf on that first request), it's less practical to use JS to decide. User-Agent works well in practice.