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

[whatwg] Proposal for separating script downloads and execution

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 17 Feb 2011 11:14:59 -0500
Message-ID: <4D5D4983.4070108@mit.edu>
On 2/17/11 11:07 AM, Nicholas Zakas wrote:
> With regards to #1, I do think it could be user-agent defined if
> agreement can?t be reached on the correct default behavior (so in IE
> preload would default to true while in FF it would default to false).
> That seems like a reasonable first step.
>
> CCing Boris to see if the implementation would be too horrible to consider.

Implementation of which?

The problem with prefetching immediately on src set is that you have no 
idea when or whether the node will get inserted.  So you have to keep 
the data alive... for how long?  From a user's point of view, that's a 
memory leak pure and simple, if the node never gets inserted into the DOM.

-Boris
Received on Thursday, 17 February 2011 08:14:59 UTC

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