-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Promise' used for quality metrics not supported in IE 11 #1200
Comments
Bluebird (minified) is 77 KiB which is a pretty heavy dependency for adding a single |
One solution would be a way to use |
Can you just let the browser load the image? Something like https://codepen.io/petridish/pen/gObpbZa. I think you'll need to take care of cross-origin issues. Another way would be to insert the image as a base64-encoded string but that feels a bit clunky. |
I found a |
Nice! I'll try this out |
@laurenwalker How can a module be dynamically required? Doesn't the module name for the 'Promise' always need to be in the Is there another way to conditionally require the polyfill for IE? Easy enough to test if the function is defined:
|
Either way would work, I was just thinking that requiring dynamically would save non-IE 11 users (most users) from having to load that polyfill code. It would be a minor performance improvement, so not a huge deal, but it would be nice. You can require a component anywhere in the code, not just in the If this is becoming a huge blocker, then we can just go ahead and include the polyfill in the Stats model. |
The The
|
In order to display aggregated quality metrics in the portal metrics tab, an image needs to be retrieved from the quality service (k8s). As I didn't find a way to make this work with the
commonly used
$.ajax()
call,Promise()
was used. It turns out that IE 11 does not supportPromise()
. This work is currently in a feature branch. Note - i have not testing this in IE 11, just googled to see if there were any problems.Potential solutions:
$.ajax()
be able to retrieve an image from a service (and provide error handling)Promise
library (i.e. 'Bluebird) described hereThe text was updated successfully, but these errors were encountered: