W3C home > Mailing lists > Public > www-style@w3.org > September 2009

Re: Image sprites use cases

From: Alex Kaminski <activewidgets@gmail.com>
Date: Thu, 3 Sep 2009 18:44:46 +0200
Message-ID: <6328fb9a0909030944h2481c0et4edc418da4b78f2d@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
On Thu, Sep 3, 2009 at 6:26 PM, Boris Zbarsky<bzbarsky@mit.edu> wrote:
> Alex Kaminski wrote:
>>
>> And how this is different from keeping the set of separate images in a
>> .zip package?
>
> One can stick the zip on disk and decode into memory one at a time as
> needed.  There's no memory cost at all for the small images you happen not
> to be using on the current page.
>

You can do exactly the same with a composite image - keep it on disk,
extract sprites into memory one at a time as needed, release memory
taken by the composite image after extraction.

-- 
Alex Kaminski
http://www.activewidgets.com
Received on Thursday, 3 September 2009 16:45:27 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:20 GMT