W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2011

[whatwg] Proposal for separating script downloads and execution

From: Will Alexander <serverherder+whatwg@gmail.com>
Date: Tue, 22 Feb 2011 18:21:10 -0500
Message-ID: <AANLkTin_PXh9CkCztgh5ayHeCmP86TS3RUxNcnpE2mPp@mail.gmail.com>
On Tue, Feb 22, 2011 at 4:13 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> Uh... In that situation I would expect the event handler to
>  keep the script alive until the load finishes.
> Anything else is just a bug that exposes GC timing to the web page.

Yes, quite strange. It's fixed in IE9  (at least my test no longer
fails) so clearly considered  a bug.

> IE shows ... bad memory behavior

To your original point, Boris, if there's no way to reclaim the memory
for a pre-fetched script _until_ its executed, then even legitimate
use-cases (e.g. pre-fetching auto-completion data) by "responsible"
authors would be of concern.

Would a means by which authors can mark a pre-fetched script as
"stale" allay some of your concerns?  Is there some way to accomplish
this in Gecko now for a pre-fetched Image?
Received on Tuesday, 22 February 2011 15:21:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:31 UTC