nolanlawson

nolanlawson/optimize-js

Optimize a JS file for faster parsing (UNMAINTAINED)

JavaScript
3741
100
Apache License 2.0

reason is performance. The browser is trying to _save_ you from the cost of parsing functions that are never invoked. If you have a function like: ```js function doNothing() { console.log('do nothing!'); } ``` Then if you never call `doNothing()`, the browser can avoid fully parsing it, which means it can avoid the cost of allocating the function object, setting up its scope, etc. This is a good thing! That's why `optimize-js` only focuses on the functions that are likely to be invoked. ### Does this affect run-time performance? No, this only affects the initial parse time of the script.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

nolanlawson's profile
nolanlawson
81 contributions
aickin's profile
aickin
8 contributions
vigneshshanmugam's profile
vigneshshanmugam
2 contributions
austinkelleher's profile
austinkelleher
1 contributions
hhnr's profile
hhnr
1 contributions
hugoabonizio's profile
hugoabonizio
1 contributions
jfsiii's profile
jfsiii
1 contributions
mlrawlings's profile
mlrawlings
1 contributions
ymichael's profile
ymichael
1 contributions
michelgotta's profile
michelgotta
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet