View always gets down to Comments/Tags

Gefreiter

For a while now the view when i use the radom button or the left/right buttons to switch to another image, it goes down instead of staying up where the pic is.
 
This only begin recently, before it was everything alright.  
Did something change regarding the site?
Zaknel
Pixel Perfection - I still call her Lightning Bolt
Solar Supporter - Fought against the New Lunar Republic rebellion on the side of the Solar Deity (April Fools 2023).
Crystal Roseluck - Had their OC in the 2023 Derpibooru Collab.
Princess of Love - Extra special version for those who participated in the Canterlot Wedding 10th anniversary event
Elements of Harmony - Had an OC in the 2022 Community Collab
Non-Fungible Trixie -
Wallet After Summer Sale -
Friendship, Art, and Magic (2019) - Celebrated Derpibooru's seventh year anniversary with friends
A Tale For The Ages - Celebrated MLP's 35th Anniversary and FiM's 8th Anniversary
Artist -

Mods-Ezekiel 33:11
If you’re referring to clicking on an image brings you down to the comments, that is an issue I have also been experiencing for three months. One time, I clicked on the comments button, and was brought lower than the latest comment. I use Chrome.
JP
Pixel Perfection - I still call her Lightning Bolt
Silly Pony - Celebrated the 13th anniversary of MLP:FIM, and 40 years of MLP!
Shimmering Smile - Celebrated the 10th anniversary of Equestria Girls!
Solar Guardian - Refused to surrender in the face of the Lunar rebellion and showed utmost loyalty to the Solar Empire (April Fools 2023).
Roseluck - Had their OC in the 2023 Derpibooru Collab.
King Sombra - Celebrated the 10th anniversary of The Crystal Empire!
A Lovely Nightmare Night - Celebrated the 12th anniversary of MLP:FIM!
Princess of Love - Extra special version for those who participated in the Canterlot Wedding 10th anniversary event by contributing art.
Elements of Harmony - Had an OC in the 2022 Community Collab
Non-Fungible Trixie -

I miss the show so much
This has been going for a month or two now. Happens in Firefox 60 and 61. I feel 61 made it happen more often.
 
If I open 10 images in tabs, I’d say at least 4 of them are already scrolled down to the comment section when I switch the tab and what’s worse is that keyboard focus is not on the page (I don’t know where it is but it’s not on the page). I have to click some empty spot on the page to make the keyboard work on that page. And I use keyboard a lot so this is insanely annoying. Sometimes pressing Tab will fix the focus problem, it moves the dotted focus rectangle to the first tag.
 
At first I thought this was a bug in Firefox, but then I realized that none of this happens anywhere else except on Derpi.
 
(And I assure you I am NOT clicking the comment buttons on image galleries. I click on the images.)
barbeque
Roseluck - Had their OC in the 2023 Derpibooru Collab.
Elements of Harmony - Had an OC in the 2022 Community Collab
Non-Fungible Trixie -
Twinkling Balloon - Took part in the 2021 community collab.
Friendship, Art, and Magic (2018) - Celebrated Derpibooru's six year anniversary with friends.
Magical Inkwell - Wrote MLP fanfiction consisting of at least around 1.5k words, and has a verified link to the platform of their choice
Magnificent Metadata Maniac - #1 Assistant
Thread Starter - Tag alias request thread
Artist -
Bronze Bit -

Just to chime in but yeah, has been happening here for a few months as well now. Also Firefox, and also not sure what’s going on.
 
It’s not just Derpibooru: a few websites I use at work suffer from the same problem (focus being all over the place, random pages opening scrolled halfway, etc), which now that I think about it started around the same time as it did here on Derpibooru. I’ve even had some plaintext pages scroll randomly on me by now.
 
At this point I’d lean more towards this being a browser ‘feature’ rather than something we can actually fix.
 
That said, I just did some testing with F12/Network on, and it seems that every time it goes wrong, it loads the favicon.svg last (or at least after the image). I’ve done this multiple times on my end, and it seems to be consistent so far. Can anyone confirm this perhaps? (the favicon is also used in the top-left of the website).  
Correct (click for bigger): full
 
Incorrect (click for bigger): full
JP
Pixel Perfection - I still call her Lightning Bolt
Silly Pony - Celebrated the 13th anniversary of MLP:FIM, and 40 years of MLP!
Shimmering Smile - Celebrated the 10th anniversary of Equestria Girls!
Solar Guardian - Refused to surrender in the face of the Lunar rebellion and showed utmost loyalty to the Solar Empire (April Fools 2023).
Roseluck - Had their OC in the 2023 Derpibooru Collab.
King Sombra - Celebrated the 10th anniversary of The Crystal Empire!
A Lovely Nightmare Night - Celebrated the 12th anniversary of MLP:FIM!
Princess of Love - Extra special version for those who participated in the Canterlot Wedding 10th anniversary event by contributing art.
Elements of Harmony - Had an OC in the 2022 Community Collab
Non-Fungible Trixie -

I miss the show so much
@barbeque  
Can confirm. If the favicon is loaded last the page is scrolled down.
 
Here’s more:
 
If I keep Firefox’s web console open and type document.activeElement on a page that scrolled down when opened (and has no keyboard focus), I see input class="input js-taginput-input-tag_input" autocapitalize="none" data-ac="true" data-ac-min-length="3" data-ac-source="/tags/autocomplete.json?term=" placeholder="add a tag" type="text">; this is the tag input box which just happens to be not visible.
 
On pages that don’t scroll down and the keyboard works normally, the initially focused element is <body data-signed-in="true" data-theme="default">.
 
Every time the keyboard focus is in the tag box initially, favicon was loaded last.
 
Could this be it? The tag editor grabs the focus even when it’s not visible, so the page is scrolled down. Why this does not happen on every page, I don’t know. Maybe the edit box should be focused only when the tag editor is opened?
barbeque
Roseluck - Had their OC in the 2023 Derpibooru Collab.
Elements of Harmony - Had an OC in the 2022 Community Collab
Non-Fungible Trixie -
Twinkling Balloon - Took part in the 2021 community collab.
Friendship, Art, and Magic (2018) - Celebrated Derpibooru's six year anniversary with friends.
Magical Inkwell - Wrote MLP fanfiction consisting of at least around 1.5k words, and has a verified link to the platform of their choice
Magnificent Metadata Maniac - #1 Assistant
Thread Starter - Tag alias request thread
Artist -
Bronze Bit -

@JP  
Thanks for confirming, and that’s also a nice find on the active element, I’ll see if I have time to confirm that back one of these days.
 
The tagbox autofocusing might indeed explain the scrolling, though no idea why it’s coinciding with the favicon. On the favicon front, I’m not sure if it’s because it’s the favicon, or an svg, or both, or whatever. It might just be collateral from strange autofocusing or vice versa.
 
I’ll report back my findings when I have them. I need to find a giant whiteboard first, perhaps
barbeque
Roseluck - Had their OC in the 2023 Derpibooru Collab.
Elements of Harmony - Had an OC in the 2022 Community Collab
Non-Fungible Trixie -
Twinkling Balloon - Took part in the 2021 community collab.
Friendship, Art, and Magic (2018) - Celebrated Derpibooru's six year anniversary with friends.
Magical Inkwell - Wrote MLP fanfiction consisting of at least around 1.5k words, and has a verified link to the platform of their choice
Magnificent Metadata Maniac - #1 Assistant
Thread Starter - Tag alias request thread
Artist -
Bronze Bit -

@JP  
Addendum for yesterday, yes, the document.activeElement seems to happen here as well. Very strange. When I have some time (no promises on when, sorry, but eh, given that it’s been manifesting for a few months now…) I’ll start to look into this.
Interested in advertising on Derpibooru? Click here for information!
Pony Arts & Prints!

Help fund the $15 daily operational cost of Derpibooru - support us financially!

Syntax quick reference: **bold** *italic* ||hide text|| `code` __underline__ ~~strike~~ ^sup^ %sub%

Detailed syntax guide