When IE is in compatibility mode it uses an IE7 user-agent identifier in get requests, even if it's using IE11 features. This was causing our call to polyfill.io to fail because IE7 support wasn't required or sufficient, but was being requested.
This PR changes the polyfill.io call by waiting until runtime and checking if the browser is IE before constructing the polyfill IO URL. In the case of IE, it uses the IE specific documentMode to construct the URL.
When IE is in compatibility mode it uses an IE7 user-agent identifier in get requests, even if it's using IE11 features. This was causing our call to polyfill.io to fail because IE7 support wasn't required or sufficient, but was being requested.
This PR changes the polyfill.io call by waiting until runtime and checking if the browser is IE before constructing the polyfill IO URL. In the case of IE, it uses the IE specific documentMode to construct the URL.
You can see the issues by using IE11 and choosing Tools | Compatibility Mode Settings and browsing to https://starter-kit-universally.herokuapp.com/ BROKEN https://starter-kit-universally-pr-87.herokuapp.com/ FIXED