JS PSA: A "polyfill" is a function that *can be used* to replace a native method. A "shim" is a polyfill that installs itself on the global.
@ljharb “shiv” and “shim” are used interchangeably. A shiv is a thing that mimics another thing but doesn’t aim to be exactly the same.
-
-
@ljharb I’m not making this up: https://en.wikipedia.org/wiki/Shiv_(weapon) … shiv → something that enables similar functionality polyfill → spec-compliant -
- 16 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.