[dev] Sprites
Michael M Slusarz
slusarz at horde.org
Mon Oct 10 04:56:10 UTC 2011
Quoting Roger Howorth <roger at rogerh.com>:
> My apologies if this has come up before - I searched this list for
> sprite and no sign of any previous posting.
>
> When a browser loads Horde, there's a huge number of HTTP requests
> for icons and other graphics. Clearly this has performance
> implications for people connecting over high latency internet
> connections and for servers with few available processes.
>
> Would it not be a good idea to combine all the graphics/icons/etc
> that could possibly be loaded into one sprite file?
IMP already does this. Other applications need to be altered to load
their graphics via CSS rather than image files. For even better
performance, use CSS caching - graphics data will be embedded within
the CSS file itself, so there will be no need to load individual files
(although individual files are easily cached, so you should only ever
have to load a graphic once).
michael
___________________________________
Michael Slusarz [slusarz at horde.org]
More information about the dev
mailing list