Page won’t be drawn until CSS finishes loading

NEW
Unassigned

Status

()

Core
DOM
4 years ago
4 years ago

People

(Reporter: nagisa, Unassigned)

Tracking

33 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: DUPEME)

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
If the HTML loads fine, but linked CSS does not, the page will not be drawn until linked CSS finishes (or fails) loading.

I noticed this issue on gmane a few days ago where the page itself loaded very quickly, but loads for CSS were blackholed and I had to for wait TCP connection timeout (i.e. for stylesheet load to fail) to view contents of the page.

I attached a simple HTTP server written in python to which pointing firefox will easily reproduce the issue.
(Reporter)

Comment 1

4 years ago
Created attachment 8451353 [details]
Simple HTTP server which demonstrates the issue

After launching the server, point your firefox at http://localhost:8080/ or equivalent.
I think that could be a result of a recent networking change (bug 237623) ?
Component: General → Networking: HTTP
Flags: needinfo?(bzbarsky)
Product: Firefox → Core
(In reply to Matthias Versen [:Matti] from comment #2)
> I think that could be a result of a recent networking change (bug 237623) ?

I don't think it sounds like that. The code changes done for Bug 237623 only trigger once the connection is closed, so it won't affect slow or stalled transfers.

If however the connection that delivers the CSS ends prematurely, that would result in an error and would cause the CSS to not be used.
> I think that could be a result of a recent networking change (bug 237623) ?

Do you think that because this is a regression or something?

Because this bug as reported sounds like a duplicate of a very old bug that I can't locate right now about timing out the wait on stylesheets and starting layout anyway even if we have pending stylesheet loads.  We normally wait on CSS to load before starting layout to avoid flashes of unstyled content.
Flags: needinfo?(bzbarsky) → needinfo?(bugzilla)
>Do you think that because this is a regression or something?
Yes, i thought that this sounds like a recent regression but i could be wrong - sorry in that case.
Flags: needinfo?(bugzilla)
Component: Networking: HTTP → DOM
Whiteboard: DUPEME
(Reporter)

Comment 6

4 years ago
I could reproduce in Firefox 4, Firefox 2, Chrome, IE 11 and IE 8, so this smells like expected behaviour… even if not user-friendly one.
You need to log in before you can comment on or make changes to this bug.