Posted by PedroMiguel on June 2, 2011 at 2:40pm
5 followers
Jump to:
| Project: | Menu Icons |
| Version: | 7.x-3.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
Hi,
1st of all thanks a lot for this module.
I think will be a great addiction to this module the possibility to create css sprites.
In a menu with 5+ items this will speed up the site loading a lot since need much less http requests (right now done for each image).
My idea is (and please not I dont know how to program) use image cache to generate a sprite and then aplly that to the generated css.
Ps: for people who dont know what is a sprite there is a explanation: http://css-tricks.com/css-sprites
Comments
#1
I'd also be interested in this. I think service links has a module for generating sprites which could serve as inspiration.
#2
The CSS Embedded Images can fulfill the goal of this request. IMO it doesn't make sense to add lots of separately maintained code to meet the sprite generation use-case, but I would consider doing this with the sprite module if a well-supported d7 release came out. For now this is a wontfix.
#3
Understood, thanks for clarifying.
#4
acrollet, the CSS Embedded Images module is indeed a great module, but at least at first glance, it unfortunately seems it only parses theme CSS files. Upon enabling it on my test site, any CSS background images in my theme stylesheets are replaced by data:, but menu_icon's stylesheets remain untouched. I suppose this should be a feature request for the CSS Embedded Images module. :)
#5
Just submitted a feature request to CSS Embedded Images module for this. http://drupal.org/node/1601026