It appears that when you remove an img element or its container, the memory used by the image does not get cleared properly and it can cause a memory leak. To resolve this, you must first remove the src attribute prior to removing the img element or its container. For example, in jQuery:
$('#container img').removeAttr('src');$('#container').empty();Hope this helps anyone who are also experiencing a similar issue.
No comments:
Post a Comment