Skip to main content Skip to docs navigation

A shim is a piece of code used to correct the behavior of code that already exists, usually by adding new API that works around the problem. This differs from a polyfill , which implements a new API that is not supported by the stock browser as shipped.

On this page

Updated on April 20, 2024 by Datarist.