html - Displaying a large background SVG slow on WebKit? -


i have large svg graphic background of site. see example here: http://jsfiddle.net/aawgu/4/embedded/result/

body{     background: url(http://www.thedavidcummings.com/images/html.svg) no-repeat fixed right;     background-size: auto 100%; } 

it works fine in chrome , firefox, in safari navigating page , resizing browser page extremely slow, , page crashes on iphone. bug in webkit?

is there way make .svg more webkit-friendly? or should use image? svg ideal because of small file size (only 7k.) smallest .png equivalent able make 150k. want keep dimensions big image scales well.

you can optimize svg using https://github.com/svg/svgo (node), reduce filesize , improve rendering times.

saddly, safari awful slow svgs now.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -