I'm using a rather complex inline SVG with more than 1000 individual paths. I need to style and animate several paths dynamically. Therefore I can't use a normal PNG/JPG Image.
If I scroll over the area where the SVG is used, Chrome gets laggy and the framerate drops dramatically. Even without animating/styling the SVG paths. No performance issues in Firefox and Safari so far.
There is a similar question about SVG performance with a working fiddle. The difference is that I'm using one big SVG and not 800+ simultaneously: Why is SVG scrolling performance so much worse than PNG?
Any ideas how I can improve the performance in Chrome? It seems like it's a chromium bug. So maybe there is a workaround?
/
Edit:
Here is a JSFiddle with a similar SVG file. I can't exactly provide the original SVG due to copyright reasons. As you scroll over the SVG in this example you'll notice a lower scrolling performance in Chrome: https://jsfiddle.net/0dsnymry/1/
Edit January 2020:
I don't experience this issue anymore. Might be fixed in a newer Chrome version.