On Fri, Jan 23, 2009 at 3:12 AM, rjc <[email protected]> wrote:

>
> True, but it could be better. I see 8 background images and 5 icon
> sprites. Why not bundle in 1 background and 1 icon sprite


Actually we considered that. It would work, except that all browsers don't
support background-position-x and background-position-y (you have to set
both with background-position). This would seriously bloat and complicate
the css. Rather, imagine each sprite icon image is stacked vertically. Same
exact background position, just swap out that background-image url. Still 5
images, but we think it's a pretty good compromise, since we've got just
over 170 icons in there. And if you preload them, the effect won't me
noticeable.


> since all
> background have the same size (same for icon sprites).


You must be only seeing the backgrounds in the base theme (8 images, all
either 1x100 or 1x400). ThemeRoller currently has 23 background textures.
All repeat horizontally, but some repeat vertically. So a sprite actually
wouldn't work here.

- Richard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to