MozillaReality / immersive-custom-elements

Immersive Custom Elements
https://mixedreality.mozilla.org/immersive-custom-elements/examples/index.html
Mozilla Public License 2.0
134 stars 8 forks source link

Reduce the build files size #44

Open takahirox opened 4 years ago

takahirox commented 4 years ago

Currently immersive-custom-elements.js is > 1MB and immersive-custom-elements.min.js is > 500KB.

They may be too big just for the simple interactive 360 image/video contents. I think the majority of the files is Three.js entire core, but probably only part of them are used.

I think the files size can be much smaller if the build files include only the Three.js core modules we use instead of including entire core.

takahirox commented 4 years ago

Tree Shaking Three.js https://discourse.threejs.org/t/tree-shaking-three-js/1349/7