Memory leaks in browser JavaScript are subtle, often hard to reproduce, and can cause tabs to gradually consume gigabytes of RAM. Firefox's DevTools have excellent memory analysis tools. This guide shows how to find and fix common memory leak patterns using Firefox's Memory and Performance panels.
Source: [Dev.to](https://dev.to/weatherclockdash/hunting-javascript-memory-leaks-with-firefox-devtools-heap-snapshots-timers-and-event-listeners-3fpm)