Skip to content

Minify production model.json and config.json #46

Open
@mathiasbynens

Description

@mathiasbynens

https://google.github.io/magika/model/model.json and https://google.github.io/magika/model/config.json are dynamically loaded by the library, but aren’t minified.

File .json size .min.json size .json.gz size .min.json.gz size
config 9,519 bytes 5,649 bytes 782 bytes 719 bytes
model 71,626 bytes 48,329 bytes 3,722 bytes 3,254 bytes

Minifying the config results in an 8.06% file size decrease of the gzipped bundle, and minifying the config yields a 12.57% file size decrease of the gzipped bundle.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions