Closed (fixed)
Project:
iTweak Upload
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2009 at 08:06 UTC
Updated:
31 Jul 2009 at 06:20 UTC
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
Comment #1
bryancasler commentedI should have been more clear. 39 request just for the iTweak Upload module
Comment #2
iva2k commentedThanks! 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.