Skip to content

Deferred processing for style element? #137

@hrj

Description

@hrj

A rare but problematic scenario:

  • Server is single-threaded. Eg., python -m SimpleHTTPServer is single-threaded.
  • Style element contains an @import rule to a CSS file on the same server

This currently leads to a (non-fatal) deadlock. While parsing HTML, the CSS parser is invoked. The CSS parser sees the @import statement and requests that resource. This resource is loaded with async == true. The request is queued to the server, and it doesn't get served, because the server thread is still serving the HTML request.

Deferring the processing of style element is simple, but need to figure what the right solution is. In particular, how would deferring affect the CSS DOM API?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions