4 ms·
You can polyfill it in under 500 bytes: https://github.com/developit/unfetch https://github.com/developit/unfetch
by timdorr 7y ago
You can polyfill it in under 500 bytes: https://github.com/developit/unfetch https://github.com/developit/unfetch
- Carpetsmoker 7y agoAnd 7 more polyfills later and you've ended up with a hacky and incomplete version of jQuery.
- timdorr 7y agoNo, you've ended up with standard web APIs so you can safely drop those polyfills whenever browser support is at an acceptable level.
- earthboundkid 7y agoYes, there is also polyfill.io, which sniffs user agents and only sends the scripts a particular browser needs.
- starik36 7y agoYou still have to polyfill Promise, so it's definitely not under 500 bytes.