Infrastructure for synchronous script loading

This implements the parts of the "prepare a script element" algorithm that are
required for synchronous scripts.  It also adds some infrastructure for future
support of the `async` and `defer` attributes.
This commit is contained in:
Matt Brubeck 2014-10-16 18:05:29 -07:00
parent 5858fccf87
commit 65a0d1fe9a
4 changed files with 142 additions and 14 deletions

View file

@ -815,11 +815,6 @@ impl ScriptTask {
document.set_ready_state(DocumentReadyStateValues::Interactive);
// Send style sheets over to layout.
//
// FIXME: These should be streamed to layout as they're parsed. We don't need to stop here
// in the script task.
let mut js_scripts = None;
loop {
match discovery_port.recv_opt() {