Open Bug 1342781 Opened 9 years ago Updated 3 years ago

More network wait & blocked time than in Chrome

Categories

(Core :: Networking: HTTP, defect, P3)

51 Branch
defect

Tracking

()

People

(Reporter: romain.failliot, Unassigned)

Details

(Whiteboard: [necko-backlog])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:51.0) Gecko/20100101 Firefox/51.0 Build ID: 20170125094131 Steps to reproduce: Install an instance of Nextcloud 11 on an HTTP1 instance, set it up and go to the main page with a cleared cache. Actual results: Each time you clear your cache and go to the main page, it takes 30 seconds. Expected results: On Chrome it "only" take 5 seconds. The problem is that there are way too much loading requests (~240) and they are loaded synchronously in Firefox while it seems that they are loaded asynchronously on Chrome. A workaround has been found by using "defer", but we would like to have the insights of a Firefox dev on what is real the problem here. Please read this Nextcloud issue starting from this comment to understand the details: https://github.com/nextcloud/server/issues/2272#issuecomment-280913134 PS: We know that HTTP2 is the future, but some Nextcloud admins don't have access to it yet, so we have to deal with that for the time being.
Component: Untriaged → Networking: HTTP
Product: Firefox → Core
Component: Networking: HTTP → HTML: Parser
Maybe Henri can take a look and see if we're doing something incorrect here.
Flags: needinfo?(hsivonen)
> Install an instance of Nextcloud 11 on an HTTP1 instance, set it up and go to the main page with a cleared cache. Is there a public URL that demonstrates the problem without having to install something?
Flags: needinfo?(hsivonen) → needinfo?(romain.failliot)
Nope, but it's really easy to install one (just use a Debian stable, it doesn't have HTTP2 yet).
You can create a demo account at this page: https://demo.nextcloud.com through the second link (Instant trial) I've just created one and I can somehow confirm that Firefox is much slower than Chromium to load (15.89s vs 1.81s): http://i.imgur.com/os86ujU.png
Flags: needinfo?(romain.failliot)
Henri, can you take a look?
Flags: needinfo?(hsivonen)
I'll take a look after bug 1354989. Keeping myself needinfoed to remember.
I do see overall slowness but not slowness obviously attributable to the HTML parser. I see the fetch for the HTML file itself spending more time waiting for the first byte in Firefox than in Chrome. (I don't know how that could be the browser's fault.) Then I see a bunch of SVG asset fetches spending more time blocked in Firefox than in Chrome. Analyzing those waits/blocks is outside my area of expertise, so sending this over to networking.
Status: UNCONFIRMED → NEW
Component: HTML: Parser → Networking: HTTP
Ever confirmed: true
Flags: needinfo?(hsivonen)
Summary: Slow scripts loading compared to Chrome → More network wait & blocked time than in Chrome
Honza, is this something you could investigate with backtrack?
Flags: needinfo?(honzab.moz)
Whiteboard: [necko-backlog]
(In reply to Michal Novotny (:michal) from comment #10) > Honza, is this something you could investigate with backtrack? Likely yes, if we had it :D Before that someone should simply look at the devtools waterfall in chrome and firefox. I suspect they are limiting parallelism more then we do, but this depends on how many hosts there are (240 means definitely at least 40 hosts). Some top-view PCAP compare might tell something too.
Flags: needinfo?(honzab.moz)
Priority: -- → P1
Priority: P1 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: