Open Bug 1726368 Opened 2 months ago Updated 2 months ago

Site scrolls to footer on initial load in firefox but not in other browsers


(Web Compatibility :: Desktop, defect)

Firefox 91


(Not tracked)



(Reporter: pritamonline, Unassigned)


(Blocks 1 open bug)


(Keywords: webcompat:needs-diagnosis)


(2 files)

Attached image WSP-Firefox-Bug.PNG

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

To reproduce this issue visit in latest firefox browser; the website page loads and viewport stays in footer. Open same page in any other browser Chrome, Edge, Safari (mac) they stay on top during 1st load. I have attached screenshot of webpage footer area that is shown on page load - problem users are facing in firefox. Also, uploaded the demo video of issue on youtube -

Actual results:

When webpage is opened in firefox it scrolls down and stays in footer, user needs to scroll up to see the navigation section of page.

Expected results:

The site page should stay at top, it should not scroll down or stay at footer area during initial page load. There is no script written on page to make the page scroll down, firefox is picking up some thing in page that is causing it to show site footer immediately; but this does not happen with other popular browsers

In the attached video, i have reproduced the issue seen only in firefox browser wherein the webpage scrolls to end of page instead of remaining on top on page load. Firefox is not rendering the page correctly while other browsers don't seem to have this issue. On page load the website should remain on top. Please visit to check what firefox is picking up while rendering the page and causing it to go to the bottom instead of staying on top.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Navigation' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: Navigation
Product: Firefox → Core

If UA is spoofed to version 53.0 (i.e. Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/53.0), the initial scroll position will be correct.

Sounds like the site is doing something specific for Firefox 53+? Moving to webcompat for investigation.

Component: DOM: Navigation → Desktop
Product: Core → Web Compatibility

I've seen similar problems in Firefox when sites have their css <link>s in <body> instead of <head>, which is what this site is doing. But since this works when UA is spoofed to 53, it might not be that.

Blocks: 1404468
You need to log in before you can comment on or make changes to this bug.