hammerlab / pileup.js

Interactive in-browser track viewer
Apache License 2.0
278 stars 63 forks source link

Sever d3 dependency #275

Open danvk opened 9 years ago

danvk commented 9 years ago

d3 accounts for ~150k of the ~500k pileup bundle:

$ ls -lh node_modules/d3/d3*
-rw-r--r--  1 danvk  staff   329K Jul  3 23:00 node_modules/d3/d3.js
-rw-r--r--  1 danvk  staff   148K Jul  3 23:00 node_modules/d3/d3.min.js

Now that we're migrating to canvas (see #255), we barely use D3 at all.

Remaining uses:

Only the last of these will be tricky to replace. It would be nice if we could depend on only a small part of d3!

danvk commented 9 years ago

Some notes from doing a custom build of D3: