Skip to content

Need to reduce library size #2466

Description

@etimberg

With the addition of horizontal bars, v2 is huge! We need to refactor code to improve minification. I think we can shave off 20KB or more from the minified size

Largest individual source files

Minified size determined using: http://jscompress.com

Listed in decreasing order of minfied size

File Starting Unminified Size Starting Minified Size Current Minified Size
Core.helpers.js 28.2 KB 13.18 KB
Core.scale.js 24.1 KB 12.46 KB
Core.tooltip.js 19.2 KB 10.77 KB
Core.controller.js 18.0 KB 9.74 KB
Scale.radialLinear.js 16.7 KB 7.02 KB
Controller.line.js 12.1 KB 7.69 KB
Controller.doughnut.js 11.9 KB 7.32 KB 5.33 KB
Scale.time.js 13.1 KB 6.92 KB
Controller.radar.js 9.6 KB 6.49 KB
Controller.polarArea.js 9.5 KB 6.36 KB 4.24 KB
Controller.bar.js 10.7 KB 6.10 KB
Core.legend.js 10.1 KB 5.13 KB
Controller.bubble.js 6.6 KB 4.24 KB
Scale.linear.js 8.9 KB 4.02 KB 3.65 KB
Scale.logarithmic.js 6.1 KB 2.98 KB 2.88 KB
Core.title.js 5.0 KB 2.73 KB 2.16 KB
Element.line.js 5.1 KB 2.58 KB
Element.point.js 4.4 KB 2.58 KB 2.45 KB
Core.layoutService.js 10.6 KB 2.42 KB
Core.animation.js 4.0 KB 2.28 KB
Core.js 3.3 KB 1.66 KB

Other dependencies

File UnminifiedSize Minified Size
Color.min.js 114 KB 22.8 KB

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions