Bug 51650 - Implement HTML5 Suggestion to Pre-fetch Script URL's Upon SRC Assignment
Summary: Implement HTML5 Suggestion to Pre-fetch Script URL's Upon SRC Assignment
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://digital-fulcrum.com/webperf/or...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-27 11:36 PST by Will Alexander
Modified: 2011-05-23 15:23 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will Alexander 2010-12-27 11:36:35 PST
Recent activity to support parallel-loading dependent scripts lead to nightly builds including support for setting `async=true` on script elements to insure they execute in the order in which they are inserted. WHile this solves the immediate use-case, this behavior is not in the specification.  Moreover, this does not address teh use-case of pre-fetching scripts and defering their execution. 

Step 12 of the HTML 5 "Running a script" section (http://www.w3.org/TR/html5/scripting-1.html#running-a-script) makes the following suggestion: 
For performance reasons, user agents may start fetching the script as soon as the attribute is set, instead, in the hope that the element will be inserted into the document. 

This behavior is entirely sufficient to support both pre-fetching and ordered execution.  It is currently implemented in IE 4+.