MozillaReality / immersive-custom-elements

INACTIVE - 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

Closed takahirox closed 4 months ago

takahirox commented 5 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 5 years ago

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