title: How to clear browser memory with Javascript
body: <p>I have a simple single-page app that scrolls a bunch of photos indefinitely, meant to be run on displays for days at a time.</p>
  
  <p>Because of the large number of scrolling pics, the memory use in Chrome keeps growing. I want a way to programmatically reduce the memory consumption at intervals (every few hours).</p>
  
  <p>When I stop the animation programmatically, the memory footprint still doesn't go down. Even when I reload the page with <code>location.reload();</code>, it doesn't go down.</p>
  
  <p>Is there a way to do this? How I can I "clear everything" programmatically that has the same effect as closing the tab?</p>
  
  <p>FYI, in Firefox there isn't a memory issue. Just in Chrome. The code is super simple, uses requestAnimationFrame to animate two divs across the screen constantly. I'm not accumulating references anywhere. My question isn't about my code specifically, but rather about general ways to reset the tab's memory if it can be done.</p>