title: Size of a variable in JavaScript
body: <p>Out of interest, is it possible to determine the size of a JavaScript variable, in bytes?   </p>
  
  <p>I have a web-app that runs great on the desktop but <code>blows up</code>* on the iPad. I'm guessing it's because there's a much more limited amount of memory in iPad Safari, but I'd like to get some idea of what's going on in my app. </p>
  
  <p>I can estimate relative sizes, based on the size of the JSON source, but it'll be even better to know the actual size of the serialised object</p>
  
  <ul>
  <li>"Blows up" = Safari slows down, then the screen goes black, and I'm back to the standard iPad home screen. Whatever that's called. Looks to me, that Safari has run out of the memory allocated for a browser instance.</li>
  </ul>