Inserting <script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script> failed to load fetch polyfill on IE11 and above.
However, <script src="https://cdn.polyfill.io/v2/polyfill.js?features=fetch,Promise"></script> did sort out the problem.
fetch API should be usable after loading the polyfill.min.js.
fetch is undefined was thrown at the console.
I'm not sure fetch is in the default set of polyfills. The features in
this table which have a star
next to them are in the default set of polyfills you receive when
requesting cdn.polyfill.io/v2/polyfill.js
On 7 May 2016 08:56, "Rong Sen Ng" [email protected] wrote:
Description
Inserting failed to load fetch polyfill on IE11 and above.
However,
did sort out the problem.
Expected outcomefetch API should be usable after loading the polyfill.min.js.
Actual outcomefetch is undefined was thrown at the console.
Browsers Affected
- Edge
- IE 11
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/Financial-Times/polyfill-service/issues/691
@JakeChampion It makes sense. I didn't notice the star next to them.
Also note that if you want the default set PLUS fetch, you can do features=default,fetch.
Ugh. I didn't know that fetch wasn't included by default. Thanks for clarifying that.
Most helpful comment
Ugh. I didn't know that fetch wasn't included by default. Thanks for clarifying that.