Skip to content
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

Dash Application fails to load with IE Compatibility View #339

Closed
drRussClay opened this issue Aug 16, 2018 · 7 comments
Closed

Dash Application fails to load with IE Compatibility View #339

drRussClay opened this issue Aug 16, 2018 · 7 comments

Comments

@drRussClay
Copy link

I am hosting a Dash application internal to my organization and one of our users reported a page load error on IE 11. Investigation revealed that the user had our internal website domain listed in IE's Compatibility View settings. I confirmed on my own machine that adding the domain to compatibility view reproduced the error and removing the domain from compatibility view immediately allowed the page to load.

Is there a known workaround in Dash so that pages will load even if the domain is in compatibility view?

Screenshot of the page load error attached

image

@chriddyp
Copy link
Member

Thanks for reporting @drRussClay ! This was last discussed in #275, and we decided to add the tag. In code, it's here:

dash/dash/dash.py

Lines 378 to 394 in 7361db5

def _generate_meta_html(self):
has_ie_compat = any(
x.get('http-equiv', '') == 'X-UA-Compatible'
for x in self._meta_tags)
has_charset = any('charset' in x for x in self._meta_tags)
tags = []
if not has_ie_compat:
tags.append('<meta equiv="X-UA-Compatible" content="IE=edge">')
if not has_charset:
tags.append('<meta charset="UTF-8"/>')
tags = tags + [
_format_tag('meta', x, opened=True) for x in self._meta_tags
]
return '\n '.join(tags)

Could you confirm that you are using the latest version of Dash that has these changes? Or, are these changes causing the new issues?

@drRussClay
Copy link
Author

I'm using version 0.21.0, and since this fix is pretty new, I'm guessing I don't have it included. I will update and test to see if it fixes the problem. Thanks!

@chriddyp
Copy link
Member

Thanks! You can see the list of changes in the changelog here: https://github.com/plotly/dash/blob/master/CHANGELOG.md. It looks like it's part of 0.23.1

@drRussClay
Copy link
Author

I made the update but it doesn't solve the problem. If I add the website domain to compatibility view settings, my application will not load. I'm on Dash version 0.25.1. I also tried updating dash core components, dash html components, and dash renderer to the most current versions but it did not fix the issue. Any suggestions? I am serving the application via IIS; could that have something to do with it?

@ShahnurIslam
Copy link

I'm having the same issue, so a fix would be great!

@ngnpope
Copy link
Contributor

ngnpope commented Feb 27, 2019

@drRussClay - there was a bug in the meta tag definition that was fixed in v0.28.3

@gvwilson
Copy link
Contributor

Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are most important to our community. If this issue is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. (Please note that we will give priority to reports that include a short reproducible example.) If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants