Reputation: 1630
I'm dealing with tiny unicolored pixel icons for a website. What solution will have greater performance, a sprite sheet with all icons and theirs hover states or icons that are built with pure CSS.
PNG
my_incon.png
CSS
.icon{
width: 20px;
height: 20px;
Background: red;
....
}
Upvotes: 2
Views: 341
Reputation: 2879
CSS will be of greater performance for the following reasons:
Upvotes: 1
Reputation: 13258
CSS sprite will have a greater performance. If you test your website using http://gtmetrix.com/ then you will find that less calls to the server will boost the speed of the website and I guess CSS sprite has lesser calls to the server.
Upvotes: 0