Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created March 5, 2020 20:38
Show Gist options
  • Save randyzwitch/89d1605430d74b239b2521a11587dc32 to your computer and use it in GitHub Desktop.
Save randyzwitch/89d1605430d74b239b2521a11587dc32 to your computer and use it in GitHub Desktop.
Control Dash loading order
#https://github.com/omnisci/F1-demo/blob/726c56ba4e8c878abeef81b7cf680bd4d36a4bd2/f1dash/app.py#L36-L55
# helps load css at the footer, to avoid having default react css overwrite
app.index_string = '''
<!DOCTYPE html>
<html>
<head>
{%metas%}
<title>{%title%}</title>
{%favicon%}
</head>
<body>
{%app_entry%}
<footer>
{%config%}
{%scripts%}
{%renderer%}
{%css%}
</footer>
</body>
</html>
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment