I think it would make sense to look into CSS sprites. Right now my homepage is making 39 http request to load every single image. With CSS sprites it would just be one request. I combined just the 32 size icons and dropped the total size from 28.4kb to 21.8kb, and I'm sure I could take that down farther.

Good article: http://css-tricks.com/css-sprites/
Further Explanation: http://www.alistapart.com/articles/sprites
Sprite Generator I used: http://spritegen.website-performance.org/

Comments

bryancasler’s picture

I should have been more clear. 39 request just for the iTweak Upload module

iva2k’s picture

Status: Active » Fixed

Thanks! If a module needs performance optimization, it means it is getting mature. Well, I had other things lined up for it first, but tweaking CSS is fast, especially with the nice tool you pointed to. Fixed and committed to 6.x-2.x-dev. I only hope it won't prevent people making customizations and submitting more mime icons.

BTW, I think A List Apart article is about completely different sprites.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.