摘要: JavaScript is the dominant language for implementing dynamic web pages in browsers. Even though it standardized, many browsers implement and browser bindings different incompatible ways. As a result, plethora of development frameworks were developed to hide cross-browser issues ease large applications. An unwelcome side-effect these that they can introduce memory leaks, despite fact garbage collected. Memory bloat major issue applications, as affects user perceived latency may even prevent applications from running on devices with limited resources. In this paper we present JSWhiz, an extension open-source Closure compiler. Based experiences analyzing leaks Gmail, JSWhiz detects five identified common problem patterns. found total 89 across Google's Docs, Spread-sheets, Books, itself. It contributed significantly recent effort reduce Gmail footprint, which resulted reduction 75% at 99th percentile, by roughly 50% median.