diff --git a/src/components/RobotModel.tsx b/src/components/RobotModel.tsx index bdf6bd4..43eb884 100644 --- a/src/components/RobotModel.tsx +++ b/src/components/RobotModel.tsx @@ -13,8 +13,7 @@ const STATIC_ATTIRE_GLB: Record = { 'business-suit': '/Suit.glb', }; -// Preload static attire models so they're cached before user clicks -Object.values(STATIC_ATTIRE_GLB).forEach((p) => useGLTF.preload(p)); +// Attire models are loaded on-demand to avoid blocking the initial 50 MB robot load /** Merge static map with any custom GLBs stored in the persona store */ function buildAttireGlbMap(personas: { id: string; modelPath?: string }[]): Record {