title: javascript RAM memory usage
body: <p>I have website which can upload images.
  I do CROP from client side before upload then in server side new optimize...</p>
  
  <p>On Mobile devices when no Free RAM fails.</p>
  
  <p>How I can get RAM memory usage from JavaScript to skip CROP if there no memory?</p>
  
  <p>I am looking only JavaScript solution!.</p>
  
  <p>PLEASE I do not have LEAK OF MEMORY!!!</p>
  
  <p>if I open many apps and no much RAM left my strategy not working</p>
  
  <p>I need CODE by JavaScript get the free RAM and if is it bellow some amount I skip the CROP</p>
  
  <p>------------ OK define Fail: --------------</p>
  
  <p>From mobile devices people take photo and upload it...<br>
  from JavaScript I perform CROP <br>
  1. around 2MB image goes to 300kb<br>
  2. I upload only 300kb then from server side 300kb --> 30kb that I save<br></p>
  
  <p>If there is no RAM this FAILs<br></p>
  
  <p>I do not want to say "try again"<br></p>
  
  <p>I would like to Skip the CROP<br></p>
  
  <p>Thank you very much for comments. <br>
  I handle the errors but I would like to avoid client to wait 40-60 sec and then message<br></p>
  
  <p>If I go with NO CROP IS IT OK but saving near 1.7MB per image bandwidth... GREEDY :-) <br></p>
  
  <p>window.performance good I will used thanks.
  <br>
   I will do research to have round trip from SERVER SIDE what I can do can I find it for Mobile devices  <br></p>