Live data from Hacker News

Social icons in CSS3

nikesh.me

1–10 of 14 posts

Re: Social icons in CSS3

#4
Putting these small images together into one file is a good way to speed up the load times of the page.

However, I think the the CSS file would have been smaller with the icons as PNGs in a data URI or by using a single CSS-Sprite. You wouldn't be able to scale the icons, though.

Re: Social icons in CSS3

#5

Putting these small images together into one file is a good way to speed up the load times of the page. However, I think the the CSS file would have been smaller with the icons as PNGs in a data URI or by using a single CSS-Sprite. You wouldn't be able to scale the icons, though.

CSS-Sprite is one way to speed up the load time but even though this css file is still much smaller than the size of images used in CSS-Sprite. And on the other hand the programmer could change icon property(like gradient , radius etc) very easily.

Re: Social icons in CSS3

#10

I don't understand this trend of making images in CSS3. Isn't that what SVG is for?

I'm guessing it's done as an experiment and proof-of-concept instead of being offered as a best practice.

yes it is done as an experiment but don't you think by using CSS3 ... you don’t have to regenerate images every time you change the text, pages will load much faster because you don’t have to download separate images . i can say by css3 in some portion we can replace the images.
Post reply on HN