Closed Bug 1888525 Opened 10 months ago Closed 7 months ago

helpdeskgeek site runs a lot more JS in Firefox than in Chrome (checkerboards during scrolling)

Categories

(Core :: Performance, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1881922
Performance Impact high

People

(Reporter: mstange, Unassigned)

Details

(Keywords: perf:responsiveness, reproducible)

Steps to reproduce:

  1. Go to https://helpdeskgeek.com/how-to/how-to-type-letters-with-accents-on-windows-mac-and-linux/
  2. Scroll down.
  3. Scroll up.

Expected results:
The page should be responsive.

Actual results:
Lots of checkerboarding, text selection is unresponsive for multiple seconds.

Profile: https://share.firefox.dev/43zRpcT

The page seems to be poorly written but works fine in Chrome.

The Performance Impact Calculator has determined this bug's performance impact to be high. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.

Platforms: [x] Windows [x] macOS [x] Linux
Impact on browser: Causes noticeable jank
[x] Able to reproduce locally

Performance Impact: --- → high

:ksenia, this site seems to be using old DOM mutation events and is thrashing, but doesn't seem to affect android or chrome and it's unclear why - would you know?

Flags: needinfo?(kberezina)
Severity: -- → S2

Yeah, they're using DOMSubtreeModified listener, and a handler function is recursively adding and removing fixed class, so there it ends up in an endless loop. Mutation events been deprecated for a long time, and MutationObserver should be used instead.

Chrome handles it more gracefully, but they're removing support for it in version 127.

This would be a dupe of bug1881922

Status: NEW → RESOLVED
Closed: 7 months ago
Duplicate of bug: 1881922
Flags: needinfo?(kberezina)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.