3 ms·
The .js file is over 10,000 lines of code. How did it get so bloated from your 450 lines of code?
by mwiedmann 10y ago
The .js file is over 10,000 lines of code. How did it get so bloated from your 450 lines of code?
- robotmlg 10y agoNode
- klodolph 10y agoWhile the tooling uses Node, the bloat comes from the bundle which includes canvas-fit, regl, and gl-mat4.
- whostolemyhat 10y agoSince when do libraries used in your code classify as 'bloat'?
- eshyong 10y agoIt's probably a bundled JS file containing all of his dependencies.
- evan_ 10y agoIt includes imported libraries, primarily regl[1] which is 8228 lines long. [1]: https://github.com/mikolalysenko/regl/blob/gh-pages/dist/regl.js https://github.com/mikolalysenko/regl/blob/gh-pages/dist/reg...
- erkaman 10y agoI didn't spend much time optimising the size. I thought it loaded fast enough for me. But maybe it doesn't load as fast on a slow connection...