Title: Distributing partial plotly.js bundles · Issue #684 · plotly/plotly.js · GitHub
Open Graph Title: Distributing partial plotly.js bundles · Issue #684 · plotly/plotly.js
X Title: Distributing partial plotly.js bundles · Issue #684 · plotly/plotly.js
Description: We currently distribute 3 plotly.js bundles: plotly.js plotly.min.js (minified version of plotly.js) plotly-with-meta.js (plotly.js including attribute meta which are otherwise compressed) All 3 bundles are generated using the same index...
Open Graph Description: We currently distribute 3 plotly.js bundles: plotly.js plotly.min.js (minified version of plotly.js) plotly-with-meta.js (plotly.js including attribute meta which are otherwise compressed) All 3 bu...
X Description: We currently distribute 3 plotly.js bundles: plotly.js plotly.min.js (minified version of plotly.js) plotly-with-meta.js (plotly.js including attribute meta which are otherwise compressed) All 3 bu...
Opengraph URL: https://github.com/plotly/plotly.js/issues/684
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Distributing partial plotly.js bundles","articleBody":"We currently distribute 3 plotly.js bundles:\n- `plotly.js`\n- `plotly.min.js` (minified version of `plotly.js`)\n- `plotly-with-meta.js` (`plotly.js` including attribute meta which are otherwise [compressed](https://github.com/plotly/plotly.js/blob/master/tasks/util/compress_attributes.js))\n\nAll 3 bundles are generated using the same index file in [`lib/index.js`](https://github.com/plotly/plotly.js/blob/master/lib/index.js).\n\nFor `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.\n\nI propose:\n- `plotly.js`, `plotly.min.js` and `plotly-with-meta.js` will always include **all** non-beta modules\n- `plotly-basic.js` would include `scatter`, `bar` and `pie`\n- `plotly-cartesian` would include all `cartesian` and `ternary` trace types\n- `plotly-geo` would include all `geo` trace types\n- `plotly-gl3d.js` would include all `gl3d` trace types\n- `plotly-gl2d.js` would include all `gl2d` trace types \n- or maybe a `plotly-gl.js` that would combine all `gl3d` and `gl2d` trace types\n- `plotly-mapbox.js` would include all `mapbox` trace types\n","author":{"url":"https://github.com/etpinard","@type":"Person","name":"etpinard"},"datePublished":"2016-06-23T14:22:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/684/plotly.js/issues/684"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dfd6a23c-a94a-3feb-954e-a23eaa0f8c7d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A018:147152:FEB0:15F4D:6A5A5514 |
| html-safe-nonce | d4a31fe9f24d46f6427f0f88021d13248b32d95696220b24b30a0bb6241e149c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDE4OjE0NzE1MjpGRUIwOjE1RjREOjZBNUE1NTE0IiwidmlzaXRvcl9pZCI6IjkxMTMyMzkzNTc2NTg2NDk4NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f5cbab1772fa3879efc4469a0c27b5596c01d77755953b09754160d638e2be82 |
| hovercard-subject-tag | issue:161935250 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/684/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad81c764c6dfe30f9f0fad32a23dd00b2951e3f75bcffd0ba04390b48b52c0d6/plotly/plotly.js/issues/684 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad81c764c6dfe30f9f0fad32a23dd00b2951e3f75bcffd0ba04390b48b52c0d6/plotly/plotly.js/issues/684 |
| og:image:alt | We currently distribute 3 plotly.js bundles: plotly.js plotly.min.js (minified version of plotly.js) plotly-with-meta.js (plotly.js including attribute meta which are otherwise compressed) All 3 bu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | etpinard |
| hostname | github.com |
| expected-hostname | github.com |
| None | 05b9ddf6a47d2dbe13944873a99f5fb4b83ba4871f9cb8a8e256793a63ca9687 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8d29d1bd03dda2dd14b3f80b8bc27e1111f43bd |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width