maryvilledev / codesplainUI

Web app for breaking down and annotating Python 3 source code.
https://www.codesplain.io
GNU General Public License v3.0
2 stars 2 forks source link

Optimize lodash imports #503

Closed solkaz closed 7 years ago

solkaz commented 7 years ago

Description

Optimizes lodash imports by selectively importing only the functions we need (as opposed to importing the default lodash object and calling methods from it).

Motivation and Context

Cuts the bundled lodash code from 71.3kb to 20.2kb in the Web Worker and 31.2kb. Whereas lodash was 71.5% of the Web Worker bundle, it is now 41.6%, meaning it will load much faster (important for highlighting and fetching parsers)

Checklist:

Browsers