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

See whether plotly JavaScript can be imported on metrics page #4155

Open
JamesNK opened this issue May 11, 2024 · 1 comment
Open

See whether plotly JavaScript can be imported on metrics page #4155

JamesNK opened this issue May 11, 2024 · 1 comment

Comments

@JamesNK
Copy link
Member

JamesNK commented May 11, 2024

Ploty JavaScript file is 3.5MB and is referenced from the root of the dashboard app, and so it must be downloaded before the dashboard page works:

<script src="js/plotly-2.26.0.min.js"></script>

We might be able to make the plotly file dynamically imported on the metrics page. The goal is to make the file only downloaded if plotly is used.

Related:

@JamesNK
Copy link
Member Author

JamesNK commented May 11, 2024

cc @DamianEdwards

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

No branches or pull requests

1 participant