Page MenuHomePhabricator

Upon reloading Special:Preferences page loads the first tab and then switches to previously opened tab
Closed, ResolvedPublic

Description

Steps to reproduce:

  1. Open Special:Preferences page
  2. Go to tab "Recent changes"
  3. Now reload the page

Upon reloading Special:Preferences page loads the first tab and then switches to "Recent Changes" tab

Event Timeline

Yup, been this way for years. Nothing to do with OOUI.

James is right, but it is also true that the OOUI page loads slower and so the effect is more noticeable. Just for reference/comparison, here's how it looks like on my machine when refreshing the page:

(Note that the same occurs after saving the settings, so it's not just a theoretical case.)

The performance improvements from T203838 are likely to help here.

This can actually be fixed today with :target, :has and :not selectors.

Change #1281621 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] Avoid FOUC when loading Special:Preferences link to section

https://gerrit.wikimedia.org/r/1281621

Change #1281621 merged by jenkins-bot:

[mediawiki/core@master] Avoid FOUC when loading Special:Preferences link to section

https://gerrit.wikimedia.org/r/1281621