refactor: replace complete plotly bundle with smaller more specific one#6527
Merged
pditommaso merged 2 commits intonextflow-io:masterfrom Oct 31, 2025
Merged
Conversation
✅ Deploy Preview for nextflow-docs-staging canceled.
|
Signed-off-by: mashehu <mashehu3@gmail.com>
Signed-off-by: mashehu <mashehu3@gmail.com>
f2f2494 to
e6a342e
Compare
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After doing the same thing for MultiQC and nf-co2footprint the next logical step was to also optimize the plotly bundle for the nextflow run report.
I only found code for box plots in the template, so I bundled only these in this new plotly bundle resulting in a bundle size reduction from
2.4Mto1.1M🎉It also includes a version update to plotly 3.1.2 with smaller syntax changes.
Should closes #5515 and partially #5525
There is more optimization potential in removing unused bootstrap classes or replacing the moment.js library with vanilla JS, but they don't have an impact as high as plotly.