Various gadgets and extensions cause scroll position to shift after page load on Vector 2022.
While this is a problem with each gadget/extension, and not a bug in Vector 2022, this still affects the user experience in Vector 2022 compared to Vector 2010, which is somehow not affected. I think we should figure out why this happens and try to work around the problem in Vector 2022.
Ideally, each gadget/extension would be fixed to reserve space in just CSS, and then replace those placeholders with JS, so that page content would never shift due to the added interface elements. Shifting layout is also a poor user experience when linking to pages normally (see https://web.dev/cls/). But this is a lot of work.
Examples include:
- T325115: Links to sections on talk pages with collapsible header templates are unreliable (due to templates collapsing late and moving the page content) (caused by MediaWiki:Common.js on English Wikipedia; resolved on-wiki)
- T317967: Opening a section link/anchor, content scrolls up itself a bit in Vector 2022 (caused by the "Slideshow" gadget on Commons)
- T322837: Opening "Edit interlanguage links", content scrolls up itself in Vector 2022 (caused by the Wikibase extension)
- https://www.mediawiki.org/w/index.php?title=Talk:Reading/Web/Desktop_Improvements&oldid=5789360#c-Sdkb-20230116163200-Sdkb-20230111163700 (cause unknown)
- https://en.wikipedia.org/wiki/MediaWiki_talk:Gadget-edittop.js#Gadget_causes_page_layout_to_shift_on_pages_with_a_long_title (caused by the "Add an [edit] link for the lead section of a page" gadget on English Wikipedia)
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T330108#8639449 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T330108#8659034 |