Когда использовать
Keep interactive 3D responsive on constrained devices.
Решения для реализации
- Mount the selected gallery scene only instead of one WebGL context per card.
- Start with modest segments and profile before adding postprocessing.
- Lazy-load Three.js and avoid allocations inside the loop.
- Pause offscreen and release resources when closing the scene.
Как проверить результат
- One gallery has at most one active renderer.
- Hidden-tab and reduced-motion behavior are handled.
- The shell does not eagerly load Three.js.
Работающий пример
Подготавливаем 3D-сцену…