Find Memory Leak in Javascript Looping

Find Memory Leak in Javascript Looping

Always carefull when building html pages that contains looping function using Javascript. I have bad experience when building looping html that running for 24/7. Memory leaks force browser crashed and not working.

Luckily, Chrome is powerfull browser that let us to analyze memory.


Every 10 minutes, memory increased 1MB which is disaster.

How to solve it ?

1. Be careful when create new objects in loop function
2. Do garbage collection and clear variables, example :

var x = <something you do here>;
del x;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.