dxp.salam.sa - Page scrolling is slow
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(Webcompat Priority:P2, Webcompat Score:5, 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)
|
2.51 MB,
video/mp4
|
Details |
Environment:
Operating system: Windows 10
Firefox version: Firefox 147.0 / Firefox Nightly 149.0a1 (2026-01-26)
Steps to reproduce:
- 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
- Scroll up and down on the page
- 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
| Reporter | ||
Updated•6 months ago
|
| Reporter | ||
Comment 1•6 months ago
|
||
Comment 2•6 months ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Comment 3•6 months ago
|
||
Updated•6 months ago
|
Updated•6 months ago
|
Comment 4•5 months ago
|
||
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?
Updated•5 months ago
|
Updated•5 months ago
|
Updated•4 months ago
|
Comment 5•4 months ago
|
||
Site works as expected now with the fix on nightly. Bernadett, can you confirm?
| Reporter | ||
Comment 6•4 months ago
|
||
I can confirm that the scroll functionality is working correctly in Firefox Nightly 151.0a1 (2026-03-31).
Comment 7•4 months ago
|
||
Thank you!
Description
•