Key Points
References
Key Concepts
Polyfills - added function for front-end clients
...
Polyfills allow web developers to use an API regardless of whether or not it is supported by a browser, and usually with minimal overhead. Typically they first check if a browser supports an API, and use it if available, otherwise using their own implementation.[1][2] Polyfills themselves use other, more supported features, and thus different polyfills may be needed for different browsers. The term is also used as a verb: polyfilling is providing a polyfill for a feature.
Shim
Formally, "a shim is a library that brings a new API to an older environment, using only the means of that environment
difference between polyfill and shim
What makes a polyfill different from the techniques we have already, like a shim, is this: if you removed the polyfill script, your code would continue to work, without any changes required in spite of the polyfill being removed.
Potential Value Opportunities
Potential Challenges
Candidate Solutions
Step-by-step guide for Example
sample code block
Code Block |
---|
language | text |
---|
title | sample code block |
---|
linenumbers | true |
---|
collapse | true |
---|
|
|
Recommended Next Steps
Related articles