W3C home > Mailing lists > Public > public-web-perf@w3.org > November 2013

Re: sendBeacon and being synchronous

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 11 Nov 2013 22:16:11 -0500
Message-ID: <52819D7B.5000205@mit.edu>
To: public-web-perf@w3.org
On 11/11/13 10:08 PM, Doug Turner wrote:
> For example, section 4.3.12 requires us to serialize the document into a string.  We need to do this before returning so that we can throw QuotaExceededError if the size of the document is greater than 10kb.  This means that we’re going to have to walk the DOM writing out a string for up to 10kb in length before control is returned to the script.

One other note here: Is the limit 10240 bytes (which is what the spec 
says right now, since it says "KB") or 10000 bytes?  I recommend just 
explicitly writing out the number of bytes to check against.

-Boris
Received on Tuesday, 12 November 2013 03:16:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:37 UTC