You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plotly-with-meta.js (plotly.js including attribute meta which are otherwise compressed)
All 3 bundles are generated using the same index file in lib/index.js.
For v1.14.0, plotly.min.js includes 14 trace modules and weighs a hefty 1.17 MB. So, it goes without saying that we should start distributing partial bundles. Determining how to split our modules into partial bundles isn't as obvious though.
I propose:
plotly.js, plotly.min.js and plotly-with-meta.js will always include all non-beta modules
plotly-basic.js would include scatter, bar and pie
plotly-cartesian would include all cartesian and ternary trace types
plotly-geo would include all geo trace types
plotly-gl3d.js would include all gl3d trace types
plotly-gl2d.js would include all gl2d trace types
or maybe a plotly-gl.js that would combine all gl3d and gl2d trace types
plotly-mapbox.js would include all mapbox trace types
The text was updated successfully, but these errors were encountered:
Those sound like pretty sensible divisions to me. It would be really helpful if we add a very clear page that explains these different bundles as the very first section of the readme then (and on our docs pages too).
We currently distribute 3 plotly.js bundles:
plotly.js
plotly.min.js
(minified version ofplotly.js
)plotly-with-meta.js
(plotly.js
including attribute meta which are otherwise compressed)All 3 bundles are generated using the same index file in
lib/index.js
.For
v1.14.0
,plotly.min.js
includes 14 trace modules and weighs a hefty1.17 MB
. So, it goes without saying that we should start distributing partial bundles. Determining how to split our modules into partial bundles isn't as obvious though.I propose:
plotly.js
,plotly.min.js
andplotly-with-meta.js
will always include all non-beta modulesplotly-basic.js
would includescatter
,bar
andpie
plotly-cartesian
would include allcartesian
andternary
trace typesplotly-geo
would include allgeo
trace typesplotly-gl3d.js
would include allgl3d
trace typesplotly-gl2d.js
would include allgl2d
trace typesplotly-gl.js
that would combine allgl3d
andgl2d
trace typesplotly-mapbox.js
would include allmapbox
trace typesThe text was updated successfully, but these errors were encountered: