Avoid reflow (FOUC) due to ULS link on Special:Preferences
Rather than building the link in JS, which is delayed until the JS code loads, we build it in PHP and hide it from no-JS users with CSS. Change-Id: If0c3a4dc137d8bf6cf24957dd063bd0a39791d2e
This commit is contained in:
committed by
jenkins-bot
parent
427c36a9e1
commit
f0ad6be4ab
3
resources/css/ext.uls.preferencespage.less
Normal file
3
resources/css/ext.uls.preferencespage.less
Normal file
@@ -0,0 +1,3 @@
|
||||
.client-nojs .uls-preferences-link-wrapper {
|
||||
display: none;
|
||||
}
|
||||
@@ -382,7 +382,6 @@
|
||||
|
||||
// Bind language settings to preferences page link
|
||||
$( '#uls-preferences-link' )
|
||||
.text( mw.msg( 'ext-uls-language-settings-preferences-link' ) )
|
||||
.click( function () {
|
||||
$ulsTrigger.trigger( 'click', {
|
||||
source: 'preferences'
|
||||
|
||||
Reference in New Issue
Block a user