Almost 1 MB of JavaScript transferred to render a single chart? I am afraid that is not acceptable. I mean no disrespect whatsoever to the author of the library, but sending that amount of JS for a single component is just outside of any reasonable performance budget.
That being said, a server-side or build-step tool that generates lean SVG code? Yes, please.
Author here, thanks for mentioning about this issue here. The lib size is over 400kb because I imported the whole d3 lib into it, but actually only using small fraction of it. I will optimize the size later. server side rendering/svg generator is also a good idea, thanks for the suggestion
Comments (41) 16 threads
Show all comments
Showing thread 4 of 16
That being said, a server-side or build-step tool that generates lean SVG code? Yes, please.