Out of interest, is it possible to determine the size of a JavaScript variable, in bytes?
I have a web-app that runs great on the desktop but blows up
* 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.
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
- 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.