Closed Bug 1496043 Opened 6 years ago Closed 6 years ago

Firefox unresponsive for several seconds when switching topics on news.google.com

Categories

(Core :: Graphics, defect)

62 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1524056

People

(Reporter: linuxcbon, Unassigned)

References

Details

Attachments

(1 file)

(deleted), application/x-javascript
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0 Steps to reproduce: Open a fresh firefox as brand new installed. Open news.google.com Click on the left side a topic, like world , business, technlogy... Actual results: It takes several seconds to open the page. I found the slowness problem comes from javascript files like https://www.gstatic.com/og/_/js/k=... https://www.gstatic.com/_/mss/boq-dots..... When I block www.gstatic.com with /etc/hosts , the slowness problem is solved. Expected results: Processing https://www.gstatic.com/og/_/js/k=... https://www.gstatic.com/_/mss/boq-dots..... should be processed fast enough
Component: Untriaged → JavaScript Engine
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Attached file boq-dots.DotsSplashUi.js (deleted) —

Reproduced. It does take 1-2 seconds to load, but when I open up the devtools and look at the Network tab, it's mostly because the page does a POST to news.google.com that takes 1-2 seconds to come back.

The news.google.com developers know that this is slow. You can tell because they built in an animation that plays while you wait.

I'm going to close this as WORKSFORME, because it... works for me, I guess... but if it is definitely more broken than I observed, feel free to reopen with more info.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME

I disagree with Jason Orendorff.
It is really slow in comparaison to google chrome for instance.

It happens when you change topic on the left side :
local news
science technology
sports etc etc

It's not the page in itself which is slow.
It's when you click on the left side to change topic, it's slow.

Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---

I'm at a loss. This behaves exactly the same for me in Chrome and Firefox (on a Mac). Everything in comment 2 already refers to what happens when you click on a new topic on the left side. If this works fine on Mac and is slow on Linux, it might be the animation itself causing the slowness—graphics maybe?

Linuxcbon, if you'd like to help us make progress here, these steps would really help:

  • install Firefox Nightly, and see if it's still slow

  • install the Firefox Profiler https://profiler.firefox.com/, capture a profile of the slow page, and share a link here.

Priority: -- → P3

It's surely because you are using a fast CPU, so you dont see the difference. I am using a dualcore athlon. But see https://bugzilla.mozilla.org/show_bug.cgi?id=1530355 , they have the same problem as me.
I will check the profiler, but give me some time.

Here is a profiler link , I hope this helps
https://perfht.ml/2YfuLUT

Flags: needinfo?(jorendorff)

Thank you for the profile, linuxcbon.

Maybe I have an addon that blocked the problem scripts. I tried again in a clean Firefox profile and got a nice 7-second delay. Full GC cycle followed by an absurd reflow: https://perfht.ml/2WeOjaf

A user provided a profile in bug 1530355 too: http://bit.ly/2NsplkH

No obvious fix in any of these. Clearing priority to make sure this gets another look.

Flags: needinfo?(jorendorff)
Priority: P3 → --
Summary: Javascripts in www.gstatic.com are slowly processed → Firefox unresponsive for several seconds when switching topics on news.google.com

Another profile showing massive reflows. This happens more often than not, but once in a while it switches topics in a second or two. https://perfht.ml/2Wh6zQo

Matt, could you take a look at the profiles in https://perfht.ml/2WeOjaf and https://perfht.ml/2Wh6zQo ?

Component: JavaScript Engine → Graphics
Flags: needinfo?(matt.woodrow)

These massive reflows look to be within grid code.

Mats, do we have known issues with grid reflow, or is this site doing something awful?

Flags: needinfo?(matt.woodrow) → needinfo?(mats)
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago6 years ago
Flags: needinfo?(mats)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: