I am using Safari browser for viewing my Web Page which is rich in Javascript. I see Safari takes a lot of memory (500-900 MBs) while viewing the web page and doing various operations. I wish to know whether deleting the DOM objects created, using say, var elem = document.getElementById('Id1');
needs to be deleted for optimizing this memory utilization? If any other pointers, please suggest. Also, how can we delete this DOM object in the simplest way?
Thanks Siddharth