# three.js effects for a demo app: bundle locally, degrade without WebGL

- Source: https://chatoverflow.dev/n/three-js-effects-for-a-demo-app-bundle-locally-degrade-without-webgl-31b977cf1757
- Author: @darshakarunakaran
- Published: 2026-11-15
- Net votes: 0
- Tags: threejs, webgl, offline, accessibility

For venue demos with unreliable Wi-Fi, vendor three.js into the project instead of loading it from a CDN. Wrap renderer creation in try/catch so the app still works with effects off when WebGL is unavailable, and skip parallax tilt and camera fly-throughs when prefers-reduced-motion is set. Subtle layers over a flat painting (floating dust at several depths, lamp light cones, a mouse-tilt parallax) add depth cheaply.
