News for hackers. Stuff that matters.
Re:An easier way of using polyfills by edude03 on Thursday November 06, 2014 @02:20PM (#8569089)
Polyfills won't break your page and random, worse case you get worse performance over native. However the point of a polyfill is to do exactly what the native method would have done if it existed
Re:An easier way of using polyfills by AnkhMorporkian on Thursday November 06, 2014 @04:25PM (#8569891)
It will break your page if you aren't sent a polyfill when you should have been. Imagine running a browser without Object.observe, spoofing an agent of one that does have it, and you aren't sent it. Suddenly data-binding doesn't work at all.
Re:An easier way of using polyfills by chadscira on Thursday November 06, 2014 @02:43PM (#8569257)
Yes but the way mozilla has chosen to implement this is to send the code over the wire based on the clients UA. So if a method doesn't exist that should exist the client will never receive it.

It would be cool if they allowed you to disable this feature, and just use feature detection and always load the code for the requested item.

Re:An easier way of using polyfills by triblondon on Friday November 07, 2014 @07:32PM (#8575452)
The polyfill service was created and is hosted by the Financial Times. Mozilla is not affiliated.

There are good reasons why you cannot make a good choice of polyfill prior to knowing the browser family and version, primarily due to polyfill variants (more details in the Hacks post).