We've got two static files that are working fine but could be way cleaner:
preview.js and model_stats.js are both written as functional code, but they'd be much more organized and reusable if we converted them to classes.
Further, both files are loading the same GLB model separately with their own loadGLB calls. That means we're loading the same model twice, which is unnecessary and might slow things down unnecessarily over complex models.
We've got two static files that are working fine but could be way cleaner:
preview.jsandmodel_stats.jsare both written as functional code, but they'd be much more organized and reusable if we converted them to classes.Further, both files are loading the same GLB model separately with their own loadGLB calls. That means we're loading the same model twice, which is unnecessary and might slow things down unnecessarily over complex models.