W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2012

Re: [whatwg] Resource loading in browsing context-less Documents

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 5 Oct 2012 10:23:44 +0200
Message-ID: <CADnb78gxiBL8BTJ_5pQOVsqiXMd=y+ypf5dTMT2Rc4Y3SnAo7Q@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: whatwg@whatwg.org, Adam Klein <adamk@chromium.org>
On Fri, Oct 5, 2012 at 8:00 AM, Ian Hickson <ian@hixie.ch> wrote:
> This is specced. The UA is allowed to send the HTTP request (that's a
> truism, of course, nothing stops the UA from sending any arbitrary HTTP
> request at any time), but there's no in-DOM visible effect of that
> request, because event loops don't process tasks for documents without
> active browsing contexts, so the tasks that the "fetch" algorithm
> generates never get executed. (A clever UA can notice this and delay
> (forever) the HTTP requests, since the "fetch" algorithm allows you to
> wait an arbitrary amount of time before doing the request.)

Note that you can append such an <img> to a different document later
(e.g. the one that executes the script) so fetching it is probably

Received on Friday, 5 October 2012 08:24:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:17 UTC