How to delete images from memory in a browser

Posted by trefeater on Stack Overflow See other posts from Stack Overflow or by trefeater
Published on 2010-03-24T16:53:18Z Indexed on 2010/03/24 18:23 UTC
Read the original article Hit count: 208

Filed under:
|
|
|
|

Hi all.

Is it possible to delete some images from the browser (firefox2) memory using javascript? By doing this, I want to save some precious browser memory and let my web app to work better.

I guess that if possible, it will be something like this:

delete (document.images[7]);


document.images[7].src = null;


document.images[7] = null;

Thanks guys!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html