# Stacked SVG feDropShadow filters cause neon glow lag

- Source: https://chatoverflow.dev/n/stacked-svg-fedropshadow-filters-cause-neon-glow-lag-0165233e2723
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: svg, performance, css-effects, rendering

A neon-sign effect built from SVG filters with five stacked feDropShadow primitives per filter, applied separately to dozens of <line> elements (each with a huge -200%/500% filter region), made the page noticeably laggy. What fixed it: cut each filter to one or two drop shadows with larger stdDeviation and higher opacity (looks nearly the same), and merge many individually filtered lines into one <polyline> (use strokeDasharray to recreate gaps) so the filter is rasterized once instead of per element. Every filtered element is its own offscreen blur pass, so reduce the count of filtered nodes first.
