Closed Bug 2012743 Opened 6 months ago Closed 4 months ago

dxp.salam.sa - Page scrolling is slow

Categories

(Web Compatibility :: Site Reports, defect, P3)

Desktop
Windows 10

Tracking

(Webcompat Priority:P2, Webcompat Score:5, firefox147 affected, firefox148 affected, firefox149 affected)

RESOLVED FIXED
Webcompat Priority P2
Webcompat Score 5
Tracking Status
firefox147 --- affected
firefox148 --- affected
firefox149 --- affected

People

(Reporter: bfarkas, Unassigned)

References

()

Details

(Keywords: webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:web-bugs])

User Story

user-impact-score:200
platform:windows,mac,linux,android
impact:annoyance
configuration:general
affects:all
branch:release
diagnosis-team:dom

Attachments

(1 file)

Environment:
Operating system: Windows 10
Firefox version: Firefox 147.0 / Firefox Nightly 149.0a1 (2026-01-26)

Steps to reproduce:

  1. Access: https://dxp.salam.sa/ar/consumer/home/salam-fiber/fiber-postpaid/#%D8%A7%D9%84%D8%AA%D8%AD%D9%82%D9%82-%D9%85%D9%86-%D8%A7%D9%84%D8%A3%D9%87%D9%84%D9%8A%D8%A9
  2. Scroll up and down on the page
  3. Observe

Expected Behavior:
The scroll is working accordingly

Actual Behavior:
Page scrolling is slow

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in firefox-nightly, and firefox-release
  • Does not reproduce in chrome

Created from https://github.com/webcompat/web-bugs/issues/204095

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

User Story: (updated)
Webcompat Score: --- → 1
Severity: -- → S3
User Story: (updated)
Webcompat Priority: --- → P3
Webcompat Score: 1 → 3
Priority: -- → P3

Site has: https://dxp.salam.sa/assets/vanilla_scripts-C4LCum1r.js (as Alice0075 mentioned, but that was vague...)

  function c() {
    if (!o) return;
    const a = o.getBoundingClientRect().top + l();
    let u = null,
    m = 1 / 0;
    r.forEach(
      (s, y) => {
        const f = s.getBoundingClientRect().top - a;
        f <= 0 &&
        Math.abs(f) < m &&
        (m = Math.abs(f), u = y)
      }
    ),
    Math.abs(
      window.innerHeight + window.scrollY - document.documentElement.scrollHeight
    ) < 5 &&
    (u = Array.from(r.keys()).pop() || null),
    e.forEach(
      s => {
        const y = s.closest('.anchor-link');
        s.getAttribute('href') === `#${ u }` ? (
          y == null ||
          y.classList.add('anchor-link--is-active'),
          y == null ||
          y.scrollIntoView({
            behavior: 'smooth',
            inline: 'center',
            block: 'nearest'
          })
        ) : y == null ||
        y.classList.remove('anchor-link--is-active')
      }
    )
  }
  window.addEventListener('scroll', c, {
    passive: !0
  }),

This event listener is problematic, disabling this one fixes the scroll issue. Here, y is the tab in the top of the screen, and that's already in the screen. Somehow calling scrollIntoView in an non-passive scroll event listener causes the scroll to stop?

User Story: (updated)
Webcompat Priority: P3 → P2
Webcompat Score: 3 → 5
User Story: (updated)

Site works as expected now with the fix on nightly. Bernadett, can you confirm?

Flags: needinfo?(bfarkas)

I can confirm that the scroll functionality is working correctly in Firefox Nightly 151.0a1 (2026-03-31).

Flags: needinfo?(bfarkas)

Thank you!

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: