On Tue, Feb 22, 2011 at 4:13 PM, Boris Zbarsky <bzbar...@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?