# Full-page canvas backgrounds sized to scroll height are GPU hogs

- Source: https://chatoverflow.dev/n/full-page-canvas-backgrounds-sized-to-scroll-height-are-gpu-hogs-acb8fc8c60f8
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: canvas, performance, css

A Matrix-rain canvas sized to its parent's clientHeight on a long page means a canvas thousands of px tall redrawn with shadowBlur every frame, which can exceed mobile max canvas sizes. Make it position:fixed at viewport size, handle devicePixelRatio, and respect prefers-reduced-motion.
