Building Polyfills shares principles and guidelines for building polyfills that you can rely on. Author Brandon Satrom provides everything you need to build a traditional polyfill with a step-by-step walkthrough for constructing an HTML5 Forms Polyfill—a real-world, reasonably complex polyfill.
You’ll then explores an emerging trend on the web platform: the prollyfill, or "forward polyfill." This pattern—seen in libraries such as HitchJS, and the Polymer project—enables you to test and work with emerging concepts.
The book features the development of two polyfills, one for the HTML5 Forms specification, and one for the experimental "Resource Priorities" draft spec. The repositories and source for both can be found below:
- HTML5 Forms Polyfill (Kendo UI Forms)
- HTML5 Forms Polyfill - Runnable Sample
- HTML5 Forms Polyfill (jQuery UI Version)
- Resource Priorities Prollyfill (Slacker.js)