concept polyfill in category jQuery

appears as: polyfill, polyfills, A polyfill, polyfills, The polyfill
jQuery UI in Action

This is an excerpt from Manning's book jQuery UI in Action.

The jQuery UI team feels this model is the best way to move forward with events on the web; the team is currently working with others to create a polyfill of pointer events for browsers that don’t natively support them, which will make the interactions work on any device. Expect it to be included in the library in a future release of jQuery UI.

F.1. Using polyfills

A polyfill is a piece of code that adds a feature when it’s not natively available on the platform. In our case, the native features we’re interested in are the new HTML5 elements and input types. To use a polyfill, first you need to detect whether the feature is supported on the platform the code is running on. The following shows a function that does a feature detect for native date support and uses the jQuery UI datepicker if native support isn’t available: