Skip to content

Refactor preview.js and model_stats.js for better modularity and performance #23

@AyushDharDubey

Description

@AyushDharDubey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions