4 ms·
i don't know why sprites are still recommended? they save big on HTTP request, but they have quite a DOM rendering overhead. the best icons, are no icons. you c
by franze 15y ago
i don't know why sprites are still recommended? they save big on HTTP request, but they have quite a DOM rendering overhead. the best icons, are no icons. you can cut back on icons big time without loosing any usability (as measured by time on site, average page views, ...). the benefit of a faster site by far outweighs the loss of some meaningless icons that are mostly only there to stroke the ego of designers. (but if you still need icons, use unicode)
- rimantas 15y agoCare to provide numbers how "big" that DOM rendering overhead is? Saving HTTP request is very important ant very noticeable, especially on mobile (high latency). DOM overhead with sprites is negligible in comparison.
- franze 15y agoyeah, i agree totally, but even better are no icons at all. i don't have exact figures by hand, but one sites (which used sprits very very heavily) we managed to save about 250ms in DOM rendering - on some slow, crappy, ugly plattforms (not talking about IE6 here, but IE7 and 8 aren't much better in that regard). i recommend using chrome speed tracer extensively for DOM rendering optimization. what is just a little bit slow in chrome is unbelievable slow on IE.