TLDR Dev · ARTICLES & TUTORIALS

YOUR SPA IS LEAKING MEMORY. SOAK TEST IT

denodell.com8 min read

Summary from the TLDR Dev newsletter

SPAs never reload, so leaked listeners, timers, and detached nodes accumulate until the tab dies. 86% of 500 scanned React/Vue/Angular repos register something they never clean up. The fix is a Playwright soak test that loops one round-trip flow a few hundred times in a single browser context, reads node and listener counts over CDP before and after (heap is too noisy), and asserts they don't climb.