Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS - Optimizing rounded corners for speed

I'm trying to optimize my site for speed. I used images for the rounded corners before but now I've changed them with border-radius and -moz-border-radius css rules. Which way is the best for speed? I used to think that css rules are faster but I've seen a lot of sites talking about css sprites and I'm a bit confused now. Oh and I don't care about IE compatibility so you can suggest any method you want.

like image 788
Auxiliary Avatar asked Mar 02 '26 21:03

Auxiliary


1 Answers

The speed goes like this: CSS > sprites > separate images. The sprites is when instead of having separate images for the corners you use a single image and slice/position it with CSS. It's fatser, because you only download one image then. CSS is the fastest, because it doesn't need to download anything.

like image 122
Radomir Dopieralski Avatar answered Mar 05 '26 13:03

Radomir Dopieralski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!