title: Detect memory exhaustion in the browser before it crashes
body: <p>When a JavaScript client application uses too much memory, the browser will either crash or throw an exception that can't be recovered from or swap like it's the 80s.</p>
  
  <p><strong>Do browsers signal that they almost reached the available memory limit for a tab?</strong></p>
  
  <p>Ideally, I'd love to be able to catch an event that I can intercept in JavaScript when the browser is running low on memory in order to automatically fall back to a light version of the application or tell my users to go buy a new computer / phone.</p>
  
  <p>I know Chrome Performance Tools allow imprecise querying of the used memory, which is a first step, but probably not enough to detect memory limitations.</p>