Skip to main content Accessibility Feedback


A polyfill is a term coined by Remy Sharp for a snippet of code that adds support for a feature to browsers that don’t offer it natively.

They let you provide deeper backwards compatibility and browser support without having to use a clunky preprocessor or command line tool.

⏰🦉 Early Bird Sale! A new session of the Vanilla JS Academy starts on February 1. Today and tomorrow, get 40% off the program. Click here to learn more.

How to use a polyfill

Drop polyfills from the list below into your codebase, ideally before any code that uses the JavaScript methods or browser APIs you’re polyfilling.

Alternatively, you can automatically polyfill your site with a service like

The Polyfills

Some were written by me. Others were squirreled away from around the web. Links to the source and attribution are included with each one.