js-algorand-sdk icon indicating copy to clipboard operation
js-algorand-sdk copied to clipboard

Lazy-load `langspec.json` to save space on the 32KB JSON file

Open jdtzmn opened this issue 3 years ago • 0 comments

Importing langspec.json in its entirety immediately adds 32kb to the webpack bundle. Ideally, we should dynamically import the JSON file only when it is needed. Refer to the webpack docs for more details and possible implementation examples.

jdtzmn avatar Mar 22 '21 16:03 jdtzmn