Skip to content

refactor: replace complete plotly bundle with smaller more specific one#6527

Merged
pditommaso merged 2 commits intonextflow-io:masterfrom
mashehu:update-and-optimize-plotly
Oct 31, 2025
Merged

refactor: replace complete plotly bundle with smaller more specific one#6527
pditommaso merged 2 commits intonextflow-io:masterfrom
mashehu:update-and-optimize-plotly

Conversation

@mashehu
Copy link
Contributor

@mashehu mashehu commented Oct 31, 2025

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.4M to 1.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.

@netlify
Copy link

netlify bot commented Oct 31, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit e6a342e
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/69049a8b9909e30008615d93

Signed-off-by: mashehu <mashehu3@gmail.com>
@mashehu mashehu force-pushed the update-and-optimize-plotly branch from f2f2494 to e6a342e Compare October 31, 2025 11:16
Copy link
Member

@ewels ewels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Copy link
Member

@pditommaso pditommaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@pditommaso pditommaso merged commit fdab342 into nextflow-io:master Oct 31, 2025
24 checks passed
@mashehu mashehu deleted the update-and-optimize-plotly branch October 31, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot edit plot in plotly

3 participants