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
One of the pain points of adopting Scrollgrid in a setting where the code is bundled (e.g. using Browserify or Webpack) is the fact that it depends on D3 3.5.X, but only uses very few of the features of D3.
When var d3 = require("d3"); is bundled, the resulting bundle gets bloated by 340 KB (156KB minified). The original set of features included in D3 v3.5.17 is described in the index file src/d3.js
In order to adopt Scrollgrid in my Web application, I ended up creating a custom D3 v3.5.17build that has only the D3 features that Scrollgrid uses. I modified the above index file to read as follows:
This reduced the size of the D3 bundle to 53KB (37KB minified).
If Scrollgrid were upgraded to depend on the new D3 modules (d3-selection, d3-drag), the bundle size would be smaller without any custom modifications. Is this something you'd consider for Scrollgrid?
The text was updated successfully, but these errors were encountered:
That's useful to know. I'm waiting until d3 v4 is the latest stable release before I move to depend on individual modules, but I will be at that point.
One of the pain points of adopting Scrollgrid in a setting where the code is bundled (e.g. using Browserify or Webpack) is the fact that it depends on D3 3.5.X, but only uses very few of the features of D3.
When
var d3 = require("d3");
is bundled, the resulting bundle gets bloated by 340 KB (156KB minified). The original set of features included in D3 v3.5.17 is described in the index file src/d3.jsIn order to adopt Scrollgrid in my Web application, I ended up creating a custom D3 v3.5.17build that has only the D3 features that Scrollgrid uses. I modified the above index file to read as follows:
This reduced the size of the D3 bundle to 53KB (37KB minified).
If Scrollgrid were upgraded to depend on the new D3 modules (d3-selection, d3-drag), the bundle size would be smaller without any custom modifications. Is this something you'd consider for Scrollgrid?
The text was updated successfully, but these errors were encountered: