The content is now here: https://exploringjs.com/impatient-js/ch_modules.html#polyfills
-
-
Save rauschma/6a431d51d60a6123982759e6a8579420 to your computer and use it in GitHub Desktop.
@WebReflection. Fixed, thanks! I only want to describe the most common terms. I hadn’t seen “sham” before yesterday.
the oldest usage of it I’m aware of is the es5-sham (a file in the es5-shim)
@ljharb I never noticed it before yesterday (I have known and used es5-shim for years).
¯\_(ツ)_/¯ also es6-shim has an es6-sham. a comparable term for "polyfill" is "prollyfill".
Note: My goal is not comprehensiveness, my goal is to bring beginners up to speed, without overwhelming them. Accordingly, I’m trying to answer two questions:
- What terms will newcomers see often?
- What concepts should they know about?
I don’t like the term “prollyfill” (as a non-native speaker, I only recently realized that the “prolly” may stand for “probably”). The following document suggests the alternative “speculative polyfill” which I find more intuitive: https://www.w3.org/2001/tag/doc/polyfills/
P.S. since you mentioned the word shim, I'd also mention the word sham, used to indicate the provided feature doesn't fully comply with the standard, due lack of primitives, or due developer intent to bring only partially the mentioned feature.