Polyfill-service: Failed to load fetch polyfill on IE11+

Created on 7 May 2016  Â·  4Comments  Â·  Source: Financial-Times/polyfill-service

Description

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.

Expected outcome

fetch API should be usable after loading the polyfill.min.js.

Actual outcome

fetch is undefined was thrown at the console.

Browsers Affected

  • [x] Edge
  • [x] IE 11

Most helpful comment

Ugh. I didn't know that fetch wasn't included by default. Thanks for clarifying that.

All 4 comments

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 outcome

fetch API should be usable after loading the polyfill.min.js.
Actual outcome

fetch 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.

Was this page helpful?
0 / 5 - 0 ratings