-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Passing meta tags to <head> and <footer> #170
Comments
A broader proposal for this in outlined in #265 |
This would be wonderful! I'm trying to add this meta tag into my Dash apps: My Dash app will be deployed as an Intranet app, IE11 must be supported, and the company's IE11 compatibility view settings make all Intranet pages render in compatibility mode. This compatibility mode leads to some JavaScript libraries to not load correctly (e.g. it thinks react.min.js has "Expected identifier, string or number"). Adding this meta tag would prevent IE11 from using compatibility mode when rendering the Dash app. More info on https://stackoverflow.com/q/25557299/6068036. |
Thanks for reporting @amarvin ! That seems like it might even be a tag that we should include by default. |
That'd be perfect! |
Can add meta tags from #265 |
Update component generation
I raised this on the community forum here when I wanted to add
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
to the<head>
of my app.I noticed the
<head>
section gets defined by theindex()
function and so created a subclass of Dash to add the tag above.More generally, I propose
app
should have ahead()
andfooter()
function to add extra tags to either section which would get added toindex()
The text was updated successfully, but these errors were encountered: