[whatwg] Proposal for separating script downloads and execution

Boris Zbarsky bzbarsky at MIT.EDU
Thu Feb 17 08:14:59 PST 2011


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


More information about the whatwg mailing list