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.
-
-
@mathias huh - shim is a real verb, polyfill isn't, and the definition seems to fit better this way -
@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. - 18 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.