[whatwg] Proposal for separating script downloads and execution

Henri Sivonen hsivonen at iki.fi
Thu Mar 3 02:20:36 PST 2011


Boris Zbarsky wrote:
> Think 10,000 <script> elements all pointing to the same 25KB script.
> If
> you're forced to preload the script at src-set time, that's 25MB of
> data.

Are there the known to be pages that users frequently encounter that create and set src on a large number of script nodes without inserting them? Or is this a theoretical concern about accidental resource exhaustion?

Is the expectation that IE is safe because the accident happens on a sniffed branch that IE doesn't get?

(I still quite like the idea of starting fetch upon setting .src and making insertion trigger evaluation. The idea of adding an execute() method scares me. Mainly because having an execute() method is so radically different from how things have worked so far and having insertion execute degrades gracefully(ish) in existing browsers.)

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/



More information about the whatwg mailing list