mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
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:
parent
5858fccf87
commit
65a0d1fe9a
4 changed files with 142 additions and 14 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue