-
-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Milestone
Description
A rare but problematic scenario:
- Server is single-threaded. Eg.,
python -m SimpleHTTPServeris single-threaded. - Style element contains an
@import ruleto 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?