Lea Verou 12.08.2011

CSS gradients are faster than SVG backgrounds

Przeczytaj oryginał

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

komentarzy

Brak komentarzy

Bądź pierwszy, który podzieli się swoimi myślami!

Rozszerzenie przeglądarki

Uzyskaj natychmiastowy dostęp do AllDevBlogs z przeglądarki

Tydzień

No top articles yet