Using a simple JQuery ajax request how would I calculate the response size of the xml object that is being returned from my webserver? Is there a specific JQuery byte size method or could I simply use the .length method with a basic maths calculation, for instance:
resultSize = (xmlObject.length / 1024);
Any help/suggestions would be appreciated.