ushahidi / platform

Ushahidi Platform API version 3+
http://ushahidi.com
Other
665 stars 502 forks source link

Performance: Only load d3 on demand #4928

Closed tuxpiper closed 4 weeks ago

tuxpiper commented 1 month ago

D3 is big.. don't include it in bundle.js. Just load on demand as needed.

Created by @rjmackay on 2015-07-21 12:22:50.

_Imported from https://phabricator.ushahidi.com/T1726_

Aha! Link: https://ushahiditeam.aha.io/features/PROD-745

View original issue in GitHub


rjmackay 2015-09-23

@vbhv are you already on to this? Just making sure I don't double up work

hollycorbett 2015-09-23

I have a dumb question - would it make sense to do some kind of custom build of d3 for only what we need? It covers lots of stuff, and I've been poking it out of curiosity for the last month or two... I feel like what we use it for is pretty specific... but again, I'm no d3 wizard.. so this is just an idea :)

rjmackay 2015-09-23

probably.. I looked into it a while back, the build system is a bit complicated so might leave custom builds till after launch.

hollycorbett 2015-09-23

:) indeed

vbhv 2015-09-23

@rjmackay Yes working on it. I've got d3 loading. working on getting dc to load because it also requires a CSS. Will let you know how that goes.

jshorland 2017-08-29

@rjmackay should we keep this?

rjmackay 2017-08-30

I think so. This is still fairly relevant... unless activity page is going away, or being replaced

tuxpiper 2021-06-10

@Angamanga I think we will close this one soon :) Proposing to add to the ongoing project board.

linear[bot] commented 1 month ago

PLAT-5040 Performance: Only load d3 on demand