Lea Verou 12.8.2011

CSS gradients are faster than SVG backgrounds

Read Original

This technical article presents benchmark tests demonstrating that CSS gradients provide better performance than SVG backgrounds for dynamic visual effects. The author explains that while SVG offers more capabilities, browsers must generate a DOM for each SVG graphic, causing sluggishness. The test case compares mouse-tracking spotlight effects implemented with both methods, revealing CSS gradients' speed advantage despite SVG's smaller file size.

CSS gradients are faster than SVG backgrounds

Kommentare

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet