Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

IMG tag's SRC updation causing memory leaks

$
0
0

I have the following code in my HTML page,

<imgsrc="#"height="50"width="20"id='LogoID'>

function OnUpdateWebCamIMage(src) {
        document.getElementById('LogoID').src = src;
      }

Now am calling the JavaScript function multiple times in a second to update the image in the browser. When this is running, i could see that the physical memory consumption is always increasing until it's closed.

Is there a way around to make this work without the memory leak issue?

I been testing this on IE 11.

Thanks in advance.


DK


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>