W3C home > Mailing lists > Public > public-web-perf@w3.org > February 2014

Re: [beacon] Random comments

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 12 Feb 2014 15:33:54 -0800
Message-ID: <CA+c2ei9fjQT8uqc3wRyz_sdLSU4fy60RY6B_UQQ528tsy1jDAw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Ian Hickson <ian@hixie.ch>, Arvind Jain <arvind@google.com>, public-web-perf <public-web-perf@w3.org>
On Wed, Feb 12, 2014 at 3:02 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 2/12/14 5:52 PM, Jonas Sicking wrote:
>>
>> I personally think C makes the most sense since it doesn't involve
>> grabbing some omnious global state. Instead the behavior is determined
>> by the more tangible answer to the question "which object did you call
>> a function on".
>
> What object, or what function?
>
> Consider windowC.navigator.sendBeacon.apply(windowD.navigator, args)

I would say D here. Carrying state in functions feels a lot more hacky
than carrying state in objects.

/ Jonas
Received on Wednesday, 12 February 2014 23:34:53 UTC

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