Skip to content

Dash Application fails to load with IE Compatibility View #339

Closed

Description

@drRussClay

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

Activity

  1. chriddyp commented on Aug 16, 2018

    @chriddyp
    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?

  2. drRussClay commented on Aug 16, 2018

    @drRussClay
    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!

  3. chriddyp commented on Aug 16, 2018

    @chriddyp
    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

  4. drRussClay commented on Aug 21, 2018

    @drRussClay
    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?

  5. ShahnurIslam commented on Feb 15, 2019

    @ShahnurIslam

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

  6. ngnpope commented on Feb 27, 2019

    @ngnpope
    Contributor

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

  7. gvwilson commented on Jul 17, 2024

    @gvwilson
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions