If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Freeing image data from memory after changing src

Hello everybody.

I made a script for viewing photos on my webpage. There's a list of thumbnails and one main picture. Upon selecting a thumbnail, the src attribute of the main image updates. The problem is that the image data don't get off memory when a new image is requested, so when the pictures are big, it is very easy to go out of memory. Is there perhaps a way to cause the no-longer-displayed images to be freed from memory?
The page is here: http://www.sixtease.net/photos/

That would require accessing the cache which is not possible with JavaScript due to security restrictions.
I would suggest reducing the kb size. A reduction to 20% of original is possible without noticeable deterioration.

Last edited by Fang; 10-29-2007 at 06:38 AM.

At least 98% of internet users' DNA is identical to that of chimpanzees